Apr 01, 2023·1 min read

Swift 5.8 Update Paves the Way for Swift 6 with New Feature Previews

The release of Swift 5.8 offers enhancements for the developer experience, Windows support, and previews of Swift 6 features. New functionality includes concise magic file names, regex literals, and further improvements in language and standard library enhancements.

Swift 5.8 Update Paves the Way for Swift 6 with New Feature Previews

Apple has unveiled Swift 5.8, an update to its versatile programming language, which now boasts an enhanced developer experience, improved Windows support, and a sneak peek into the upcoming Swift 6's functionalities.

Officially released on March 30, developers can download Swift 5.8 from swift.org. Although Swift 6 feature previews are inactive by default, they can be enabled using the compiler flag -enable-upcoming-feature followed by feature identifiers. These identifiers can also be integrated into source code.

Swift 5.8 includes previews of several Swift 6 evolution proposals, such as:

Moreover, Swift 5.8 introduces a conditional attributes feature designed to reduce the maintenance costs of libraries supporting multiple Swift tools versions. Other refinements include unboxing for any arguments to optional parameters, improved debug printing for key paths, and an updated result builder implementation to enhance compile performance, code completion results, and diagnostics.

In the realm of SwiftSyntax, a new parser has been completely implemented in Swift, as opposed to relying on the C++ parser to generate a SwiftSyntax tree. This change offers benefits in error recovery and promises to eventually replace the older C++ parser. The Swift Package Manager has also received upgrades, enabling targets to specify required upcoming language features and token authentication for interacting with a package registry.

For Windows, Swift 5.8 provides enhancements such as reduced dependency on environment variables for the Windows toolchain. Furthermore, initial progress towards supporting C++ interop on Windows has been incorporated into the toolchain, which includes steps to modularize the Microsoft C++ runtime.

While Swift 6 is in the works, a Swift 5.9 release is also planned. Swift 5.7 was made available in September last year.

App developers can take advantage of the most recent features and enhancements in Swift by utilizing no-code platforms such as AppMaster for building mobile applications. The AppMaster platform streamlines app creation, enabling users to craft visually appealing mobile and backend applications with increased efficiency and cost-effectiveness.

Easy to start
Create something amazing

Experiment with AppMaster with free plan.
When you will be ready you can choose the proper subscription.

Get Started