File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,24 @@ _**Note:** This is in reverse chronological order, so newer entries are added to
6
6
Swift 5.6
7
7
---------
8
8
9
+ * [ SE-0335] [ ] :
10
+
11
+ Swift now allows existential types to be explicitly written with the ` any `
12
+ keyword, creating a syntactic distinction between existential types and
13
+ protocol conformance constraints. For example:
14
+
15
+ ``` swift
16
+ protocol P {}
17
+
18
+ func generic <T >(value : T) where T: P {
19
+ ...
20
+ }
21
+
22
+ func existential (value : any P) {
23
+ ...
24
+ }
25
+ ```
26
+
9
27
* [ SE-0337] [ ] :
10
28
11
29
Swift now provides an incremental migration path to data race safety, allowing
@@ -8852,6 +8870,7 @@ Swift 1.0
8852
8870
[SE- 0323 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0323-async-main-semantics.md>
8853
8871
[SE- 0331 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0331-remove-sendable-from-unsafepointer.md>
8854
8872
[SE- 0337 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0337-support-incremental-migration-to-concurrency-checking.md>
8873
+ [SE- 0335 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md>
8855
8874
8856
8875
[SR- 75 ]: < https: // bugs.swift.org/browse/SR-75>
8857
8876
[SR- 106 ]: < https: // bugs.swift.org/browse/SR-106>
You can’t perform that action at this time.
0 commit comments