O'Reilly logo

iOS and macOS™ Performance Tuning: Cocoa®, Cocoa Touch®, Objective-C®, and Swift™ by Marcel Weiher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9. Swift

Introduced to great fanfare at WWDC 2014, Swift is Apple’s new programming language, billed as “Objective-C without the C.” This was an interesting marketing slogan, considering the fact that we know Objective-C was created by adding most of Smalltalk to C (Equation 9.1).

Image

According to the rules of Algebra I learned in high school, subtracting C from both sides of the equation (Equation 9.2) does not yield Swift, and in fact Swift seems much more closely related to C# or C++ than Smalltalk or, for that matter, Objective-C.

Image

Minor marketing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required