Skip to content

Update CHANGELOG.md for pack element captures #74065

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 1 commit into from
Jun 3, 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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ And the module structure to support such applications looks like this:
checking, and now even an actor which is "on a queue which is targeting
another specific queue" can be properly detected using these APIs.

* Closures can now appear in pack expansion expressions, which allows you to
construct a parameter pack of closures where each closure captures the
corresponding element of some other parameter pack. For example:

```swift
struct Manager<each T> {
let fn: (repeat () -> (each T))

init(_ t: repeat each T) {
fn = (repeat { each t })
}
}
```

* [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