Skip to content

[Change Log] Add a change log entry for the Swift 6 language mode. #74013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@

## Swift 6.0


* Swift 6 comes with a new language mode that prevents the risk of data races
at compile time. This guarantee is accomplished through _data isolation_; the
compiler will validate that data passed over a boundary between concurrently
executing code is either safe to reference concurrently, or mutually
exclusive access to the value is enforced.

The data-race safety checks were previously available in Swift 5.10 through
the `-strict-concurrency=complete` compiler flag. Complete concurrency
checking in Swift 5.10 was overly restrictive, and Swift 6 removes many
false-positive data-race warnings through better `Sendable` inference,
new analysis that proves mutually exclusive access when passing values with
non-`Sendable` type over isolation boundaries, and more.

You can enable the Swift 6 language mode using the `-swift-version 6`
compiler flag.

* [SE-0431][]:
You can now require a function value to carry its actor isolation
dynamically in a way that can be directly read by clients:
Expand Down