Paul Krill
Editor at Large

Apple’s Swift 2.2 offers quicker code

news
Mar 22, 20162 mins

Revised as open source, Swift 2.2 has contributions from hundreds of developers outside of Apple

fingers keyboard code hands programming
Credit: Thinkstock

Apple on Monday released Swift 2.2, which offers quicker code and is the first official release of the language since it went open source late last year.

Described as a minor release, version 2.2 produces faster-running code, according to Apple. It includes changes such as allowing most keywords as argument labels; these labels serve as part of the interface to a Swift function, describing arguments and improving readability.

Another feature, tuple comparison operators, provides generic implementations of comparison operators for tuples up to a specific arity in the Swift standard library.

The new language-version build-configuration capability, meanwhile, should help keep code working across multiple versions of the language, even though Swift syntax may change across those versions.

Apple open-sourced Swift in December, and this is the first version to take contributions from the open source community. “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,” said Apple’s Ted Kremenek. 

Version 2.2 is available as part of the 7.3 release of Apple’s Xcode IDE for development. In addition to OS X and iOS, it supports Ubuntu Linux. “The Linux port is still relatively new, and in this release does not include the Swift Core Libraries, which will appear in Swift 3,” Kremenek said. “The port does, however, include LLDB and the REPL.”

Likewise, the Swift Package Manager for managing the distribution of Swift code is still in an early stage of development and is not part of the 2.2 release.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author