Swift is unarguably the language of choice for the iOS and MacOS development communities. It was expressly designed to enable developers to build more stable apps and software more quickly. While Objective C has been around for a long, long time, and is still the language most common in iOS apps, that’s changing. And the tooling we’re used to when working with various Objective C apps isn’t around yet for Swift. There are reasons for that — while Swift is certainly more expressive, and arguably the more powerful, of the two languages, it generates more complex executables. Just like C++ creates more obfuscated programs than C, Swift produces more obfuscated programs than Objective C. Let’s see how much more complex.
This is the first post in a series describing the differences between C, Objective C, and Swift code. In the previous article, we introduced the programs we’re using for this comparison. So, you don’t need to go back to refer to the programs; I’m including them here: