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 ...

Get iOS and macOS™ Performance Tuning: Cocoa®, Cocoa Touch®, Objective-C®, and Swift™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.