Apple Swift is a programming language for iOS application development at the beginning. It can be found on Mac’s Xcode.
Now Apple Swift 2 is hosted on IBM Bluemix’s website (http://swiftlang.ng.bluemix.net). The Swift version is 2.2-dev as of today,
Swift version 2.2-dev (LLVM 46be9ff861, Clang 4deb154edc, Swift 778f82939c)
There are many language features introduced in Swift 2. Let’s begin with the elegant try-catch feature from a sample code,
/* Basic fibonacci function in swift.
The function doesn’t really throw any thing but you can see the function calls that throw are prefixed with
The evolution speed of Swift language seems a little bit faster than Google’s Go language on this feature.