Skip to content

Commit e962742

Browse files
committed
[ChangeLog] Add an entry for SE-0335.
1 parent 837b0d8 commit e962742

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ _**Note:** This is in reverse chronological order, so newer entries are added to
1919
Swift 5.6
2020
---------
2121

22+
* [SE-0335][]:
23+
24+
Swift now allows existential types to be explicitly written with the `any`
25+
keyword, creating a syntactic distinction between existential types and
26+
protocol conformance constraints. For example:
27+
28+
```swift
29+
protocol P {}
30+
31+
func generic<T>(value: T) where T: P {
32+
...
33+
}
34+
35+
func existential(value: any P) {
36+
...
37+
}
38+
```
39+
2240
* [SE-0337][]:
2341

2442
Swift now provides an incremental migration path to data race safety, allowing
@@ -8873,6 +8891,7 @@ Swift 1.0
88738891
[SE-0328]: <https://github.com/apple/swift-evolution/blob/main/proposals/0328-structural-opaque-result-types.md>
88748892
[SE-0331]: <https://github.com/apple/swift-evolution/blob/main/proposals/0331-remove-sendable-from-unsafepointer.md>
88758893
[SE-0337]: <https://github.com/apple/swift-evolution/blob/main/proposals/0337-support-incremental-migration-to-concurrency-checking.md>
8894+
[SE-0335]: <https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md>
88768895

88778896
[SR-75]: <https://bugs.swift.org/browse/SR-75>
88788897
[SR-106]: <https://bugs.swift.org/browse/SR-106>

0 commit comments

Comments
 (0)