This line should sound familiar to anybody who has done some programming anytime in her/his career. And that’s a complete program required to print ‘Hello, World!’ on the screen. Simple! Now, that’s something new for traditional programmers who are used to first importing various libraries, write a main() function, and a semicolon at the end of every line in the code!
Welcome to Swift! Apple has really simplified programming with its new Object-oriented programming language unveiled recently that makes it easy and fun to create secure and stable software.
For starters, Swift builds on the best of C and Objective-C, without the constraints of C compatibility. It provides seamless access to existing Cocoa frameworks and mix-and-match interoperability with Objective-C code (which is what all current Mac OS X and iOS programs are developed in). This enables developers to add Swift code to existing apps without having to replace all the older Objective-C code.
Swift combines the best in modern language thinking with wisdom from the wider software engineering culture. The compiler is optimized for performance, and the language is optimized for development, without compromising on either. App developed using swift becomes nimble and runs faster than the app developed in objective C. It accelerates performance by about 40%!
It is the first industrial-quality systems programming language that is as expressive and enjoyable as a scripting language. It supports playgrounds, an innovative feature that allows programmers to experiment with Swift code and see the results immediately, without having to build and run an app every time.
Swift is the future of programming for Mac and iOS devices, as it takes all the good parts of Objective-C and makes them fun, fast, and best of all, less verbose.
This may also be an attempt by Apple to further strengthen it's control on iOS platform.
We at Harrier Information System-harriersys.com have started working on our first application using Swift. Stay tuned for more on this soon!