Apple’s Swift 5.8 previews Swift 6 features
Swift 5.8, an update of Apple’s general purpose, multi-paradigm programming language, lays the foundation for Swift 6 with previews of features such as concise magic file names and regex literals. Swift 5.8 highlights also include an improved developer experience and refined Windows support.
Officially released March 30, Swift 5.8 can be downloaded from swift.org. The Swift 6 previews are turned off by default, but can be enabled through the compiler flag -enable-upcoming-feature
followed by the feature identifiers. These identifiers also can be used in source code.