Tuesday, September 9, 2014

My thoughts on Swift - Apple's new programming language

Hi,

I have been dabbling in Swift, the new programming language Apple introduced in WWDC 14. It won't replace Objective-C anytime soon, as the code base of the existing apps is too large to shift over to Swift, And Swift does not add anything new, feature wise atleast, to the iOS platform.

As we all know that Objective-c is a very old language, an object oriented take with C as its base. It was missing many of the new programming paradigms, Swift took language ideas "from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list".

What Swift does is, it lowers the barrier of entry for the new developers to the iOS universe, developers with experience with languages like javascript etc, can now easily learn Swift and being with native development.

As comfortable as I am with Objective-c now, it's syntax is arcane and harder to grasp, which make the learning curve steep for the new developers wanting to start with iOS/Mac development.

As many of you might know, Google also released a new language "Go", but it's acceptance has been minimal, google didn't push hard enough. On the other hand Apple has provided all the existing Cocoa / Cocoa touch frameworks to be used with Swift. This can just be the incentive required for widespread adoption of Swift.