What are the main differences between Objective-C and Swift?
淡淡烟草味2017-05-02 09:28:59
0
4
1394
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?
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.
Safe
Modern
Power
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.
Swift is more secure, the code is more elegant, concise, highly readable, and runs faster.
Obviously, the spelling is different