Apple introduces Swift as “an innovative new programming language for Cocoa and Cocoa Touch.” Presented to the world at Apple’s developer conference WWDC 2014, Swift has indeed aroused the interest of iOS developers .
As one of the most developer friendly languages, Swift comes with a couple of surprises for the developers:
- Interactive playground – Apple promises that coding using Swift will be interactive and fun. Well, Apple is indeed referring to the interactive playground feature of Swift. What it does? It visualizes every line of code as they are written! So you don’t need to wait till the end to view the result. How cool is that.
- Safe coding – Any Objective C developer will feel an instant familiarity with Swift. But, as they go deeper, they will realize the differences– like the powerful Constants and the newly introduced tuples. Tuples will help you create and pass around groupings of values. But what makes Swift a safe coding language is its fine-tuned syntax which will help you identify and fix the errors as you write the code and auto-managed memory.
- Faster apps and coexistence with Objective C – Tim Cook demonstrated at WWDC 2014 that apps developed on Swift will perform 40-50 times better. Well, this may be subjective considering the nature of the app. However, the interesting revelation is that even the existing apps could leverage the power of Swift as it uses the same LLVM compiler as that of Objective C.
Swift is a highly flexible language evidently derived from C and Objective C. Its innate features will eliminate the most common coding errors and a number of bad practices followed in iOS app development. A good Objective C developer will have a smooth transition to Swift programming language.
Apple has proclaimed Swift as the future language and more sophisticated features are expected to be added to its current form. So, it wouldn’t come as a surprise if Apple decides to drop Objective C in the coming years.
Have you tried out Swift yet? What is the most impressive feature according to you?
Explore the mainstays of mobile integration and ways to integrate mobile apps in your enterprise. Click the image below to download the whitepaper -