Hello, Swift community.
Now that implementation work on Swift 6.4 has largely wrapped up, the Language Steering Group would like to give a quick implementation status report on recent language and standard library proposals. This covers all accepted proposals not already marked as implemented at the time of the Swift 6.3 release.
Proposals implemented in Swift 6.4
- SE-0530: Async Result Support
- SE-0528:
Continuation - SE-0527:
UniqueArray - SE-0525: Safe loading API for
RawSpan - SE-0524: Add
withTemporaryAllocationusingOutput(Raw)Span - SE-0523:
Hashableconformance forUnownedTaskExecutor - SE-0522: Source-level control over compiler warnings
- SE-0521: Improved syntax for
Optionals of opaque and existential Types - SE-0520: Discardable result use in
Taskinitializers - SE-0519:
RefandMutableReftypes for safe, first-class references - SE-0518:
~Sendablefor explicitly marking non-Sendabletypes - SE-0517:
UniqueBox - SE-0516:
Iterable - SE-0514:
Hashableconformance forDictionary.Keys,CollectionOfOneandEmptyCollection - SE-0512: Document that
Mutex.withLockIfAvailable(_:)cannot spuriously fail- This guarantee is satisfied by existing implementations and has been backdated to Swift 6.0.
- SE-0508: Array expression trailing closures
- SE-0507:
borrowandmutateaccessors - SE-0506: Advanced observation tracking
- SE-0504: Task cancellation shields
- SE-0503: Suppressed default conformances on associated types with defaults
- SE-0502: Exclude private initialized properties from memberwise initializer
- SE-0499: Support
~Copyable,~Escapablein simple standard library protocols - SE-0498: Expose demangle function in
Runtimemodule
Proposals currently expected to be implemented in Swift 6.5
Some of these proposals are already fully implemented; others are still being finished. At this time, there are no proposals accepted in the last year that the implementors are not confident will be implemented in Swift 6.5.
- SE-0543:
InlineArray:Hashable - SE-0538:
Disconnected - SE-0537: Section placement control for functions
- SE-0532:
Optionalnoncopyable improvements and generalizations - SE-0531: Literal expressions
- SE-0529:
FilePath - SE-0526:
withDeadline- The implementation of this feature would greatly benefit from scheduling work being done for other proposals, but it can nonetheless still be implemented using the current feature set and is expected in Swift 6.5.
- SE-0515: Allow
reduceto produce noncopyable results- This work was initially planned for Swift 6.4 but didn't make it because of some unexpected difficulties. The implementors believe it will make Swift 6.5.
- SE-0513: API to get the path to the current executable
- This proposal is already completely implemented and is just waiting for
FilePathto land so that its result type can be changed.
- This proposal is already completely implemented and is just waiting for
- SE-0510: Introduce
Dictionary.mapKeyedValues - SE-0484: Allow additional arguments to
@dynamicMemberLookupsubscripts - SE-0478: File-level defaults
Other proposals
There are several outstanding proposals from more than a year ago that have not yet been fully implemented.
- SE-0474: Yielding accessors
- About a year has passed since this proposal was accepted. Implementation work stalled for a few months, but has recently resumed. The implementors are hopeful that this feature will be ready for Swift 6.5, and the LSG does not expect to run a new review if that completes soon.
- SE-0455: SwiftPM @testable build setting
- Over a year has passed since this proposal was accepted, and implementation work has stalled. Additionally, the Ecosystem Steering Group has been created and now shares responsibility for this proposal. The ESG is looking into restarting work on this proposal, but we may need to run a new review.
- SE-0448: Regex lookbehind assertions
- Over a year has passed since this proposal was accepted, and implementation work has stalled. If work resumes on it, the LSG will likely run a new review just to check that there are no new concerns about the feature.
- SE-0288: Adding `isPower(of:)` to `BinaryInteger`
- This feature was added to the Preview package a long time ago. The LSG does not intend to use the Preview package for anything else and would like to see this feature merged into the standard library. This work is not yet scheduled, however.