search

Home  >  Q&A  >  body text

What are the main differences between Objective-C and Swift?

There doesn’t seem to be that much comparison between Objective-C and Swift on the Internet. Apart from some grammatical differences, what is the difference between OC and Swift?

淡淡烟草味淡淡烟草味2844 days ago1395

reply all(4)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-02 09:30:59

    1. Safe

    2. Modern

    3. Power

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:30:59

    Swift’s syntax is obviously closer to most current mainstream programming languages. Objective-C’s unique [] scares away many C/C++/Java programmers.
    And Swift does not support older OSX/iOS, but Objective-C does, as long as the API used is not too new.

    reply
    0
  • ringa_lee

    ringa_lee2017-05-02 09:30:59

    Swift is more secure, the code is more elegant, concise, highly readable, and runs faster.

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-02 09:30:59

    Obviously, the spelling is different

    reply
    0
  • Cancelreply