Swift 5.2 adds language changes and clearer error messages
The programming language Swift is now available in version 5.2, and it has several new features on board. Two language proposals have been implemented, error messages should now show more detailed information and code completion speed should be improved.
Swift 5.2 has been released. The general-purpose programming language, developed by Apple, was introduced in a keynote in 2014: “The language is called Swift and it totally rules.”
A year later, the language was open sourced. With its focus on speed, Swift should serve as a replacement for C, C++ and Objective-C. Let’s dive right in and see what’s new in v5.2.
Features in Swift 5.2
Swift 5.2 implements two language proposals. Both are additive changes, which means they have no impact on API resistance, source compatibility or ABI stability.
The first proposal, SE-0249, means Swift users can now use the key path expression
(Root) -> Value functions are allowed. SE-0253 introduces “statically” callable values to Swift. This can, for example, be useful for values that represent mathematical functions or function expressions.