Code a Lot Quicker with Swift Version 2.2
Yesterday, Apple has officially released Swift 2.2 to everyone. This release is focusing on quicker coding and is the first official release
Yesterday, Apple has officially released Swift 2.2 to everyone. This release is focusing on quicker coding and is the first official release of the language since it went open source late last year. I believe this is a major step forward for the language.
This release is described as a minor release, yet version 2.2 will be producing faster running code, according to what Apple is saying. Several other changes has been made to allowing most keywords as argument labels. These labels serve as part of the interface to a function in Swift. Also having the ability to describe arguments helps with the readability of code.
Another feature highlight of this release is tuple comparison operators. These will be providing generic implementations of comparison operators for tuples up to a specific arity in the Swift standard library.
The new language-version build-configuration capability is quite impressive also. It should help with keeping code working across multiple versions of the language. This should even work though Swift syntax. This could change across different versions.
Apple has open sourced the Swift programming language in December, and this version is the first to take suggestions, ideas, and improvements from the open source community.
Apple's Ted Kremenek said:
The release includes contributions from 212 non-Apple contributors -- changes that span from simple bug fixes to enhancements and alterations to the core language and Swift Standard Library.
The version 2.2 release is officially available as part of the 7.3 release of Apple's Xcode IDE. In addition to OS X and iOS, it is also supporting the Ubuntu Linux distro.
Ted Kremenek also stated:
The Linux port is still relatively new, and in this release does not include the Swift Core Libraries, which will appear in Swift 3. The port does, however, include LLDB and the REPL.
Before I forget, the Swift Package Manager for managing the distribution of Swift code is still in an early stage of development and is not currently apart of the 2.2 release as of yet.