Swift OC compared with

Swift's father Chris Lattner, LLVM is also the father, after the announcement from Swift 2014 year version has been less stable, grammar gradually stabilized in Swift3.0 later, more popular this developer

Chris Lattner departure from Apple to Tesla, he felt not suitable for them, the result has had to travel to the Google, relatively fast hardware is to participate in artificial intelligence, machine learning research area,

Last year Tensorflow began to support Swift, a big plus for developers Swift, Swift and performance than the 1.2 times higher OC, OC will undoubtedly Swift shot dead on the beach, or to learn at Swift

 

Swift advantages:

1. easy reading, grammar and file structure simplified

2. Easy to maintain, the file structure clearer separation

3. more secure, it is type-safe languages

4, speed, higher performance computing

5. That is object-oriented, but also the functional programming language

Object-oriented: Swift support class encapsulation, inheritance, polymorphism

Swift support map, reduce, filter, intermediate state, the mathematical functional approach flatmap such removal, emphasis on results rather than the middle of the process.

6. Support Agreement oriented programming, more convenient than OC categories and maintenance

 

Guess you like

Origin www.cnblogs.com/tryFighting/p/10945295.html