File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 5
5
6
6
## Swift 6.0
7
7
8
+ * [ SE-0432] [ ] :
9
+ Noncopyable enums can be pattern-matched with switches without consuming the
10
+ value you switch over:
11
+
12
+ ``` swift
13
+ enum Lunch : ~ Copyable {
14
+ case soup
15
+ case salad
16
+ case sandwich
17
+ }
18
+
19
+ func isSoup (_ lunch : borrowing Lunch) -> Bool {
20
+ switch lunch {
21
+ case .soup : true
22
+ default : false
23
+ }
24
+ }
25
+ ```
26
+
27
+
8
28
* [ SE-0428] [ ] :
9
29
Distributed actors now have the ability to support complete split server /
10
30
client systems, thanks to the new ` @Resolvable ` macro and runtime changes.
@@ -10537,6 +10557,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
10537
10557
[SE- 0412 ]: https: // github.com/apple/swift-evolution/blob/main/proposals/0412-strict-concurrency-for-global-variables.md
10538
10558
[SE- 0413 ]: https: // github.com/apple/swift-evolution/blob/main/proposals/0413-typed-throws.md
10539
10559
[SE- 0429 ]: https: // github.com/apple/swift-evolution/blob/main/proposals/0429-partial-consumption.md
10560
+ [SE- 0432 ]: https: // github.com/apple/swift-evolution/blob/main/proposals/0432-noncopyable-switch.md
10540
10561
[SE- 0414 ]: https: // github.com/apple/swift-evolution/blob/main/proposals/0414-region-based-isolation.md
10541
10562
[SE- 0424 ]: https: // github.com/apple/swift-evolution/blob/main/proposals/0424-custom-isolation-checking-for-serialexecutor.md
10542
10563
[SE- 0428 ]: https: // github.com/apple/swift-evolution/blob/main/proposals/0428-resolve-distributed-actor-protocols.md
You can’t perform that action at this time.
0 commit comments