[ Go back to normal view ]

BW2 :: the bitwise supplement :: http://www.bitwisemag.com/2

Swift - another bite of the programming Apple?
The new way to code iOS and OS X

3 June 2014

by Huw Collingbourne

This is definitely the most interesting news of the week for developers. Apple has announced a new programming language called Swift.



Up to now, the principal language for OS X and iOS development has been Objective-C. This is a language based on C with a veneer of object orientation derived from Smalltalk. If you think that sounds like a neat and elegant programming language, I can only assume that you’ve never used Objective-C.

The new language, Swift, retains some C-like syntactical features but it attempts to be much simplified (you can write a ’Hello world’ program in a single line of code) to make it as accessible as, say, Python or Ruby. But unlike Python or Ruby, Swift is compiled and Apple claims that programs written in Swift run super-fast.

While Swift (and the Xcode 6 IDE which supports Swift development) are still in beta, you can start learning them today as both the language documentation and a pre-release version of Xcode 6 (including Swift) are available for download:

- Apple’s Swift website
- Swift manual (download from iTunes)
- Swift documentation (online)
- Xcode 6 (beta) download
- What’s New in Xcode 6?