Skip to content

Commit d142b43

Browse files
Update CHANGELOG.md for SE-0266 (swiftlang#29782)
* Update CHANGELOG.md Co-Authored-By: Suyash Srijan <[email protected]>
1 parent 885dda1 commit d142b43

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ CHANGELOG
2626
Swift Next
2727
----------
2828

29+
* [SE-0266][]:
30+
31+
Enumerations with no associated values, or only `Comparable` associated values, can opt-in to synthesized `Comparable` conformance by declaring conformance to the `Comparable` protocol. The synthesized implementation orders the cases first by case-declaration order, and then by lexicographic order of the associated values (if any).
32+
33+
```swift
34+
enum Foo: Comparable {
35+
case a(Int), b(Int), c
36+
}
37+
38+
// .a(0) < .a(1) < .b(0) < .b(1) < .c
39+
```
40+
2941
* [SE-0269][]:
3042

3143
When an escaping closure explicitly captures `self` in its capture list, the
@@ -7901,6 +7913,7 @@ Swift 1.0
79017913
[SE-0252]: <https://github.com/apple/swift-evolution/blob/master/proposals/0252-keypath-dynamic-member-lookup.md>
79027914
[SE-0253]: <https://github.com/apple/swift-evolution/blob/master/proposals/0253-callable.md>
79037915
[SE-0254]: <https://github.com/apple/swift-evolution/blob/master/proposals/0254-static-subscripts.md>
7916+
[SE-0266]: <https://github.com/apple/swift-evolution/blob/master/proposals/0266-synthesized-comparable-for-enumerations.md>
79047917
[SE-0269]: <https://github.com/apple/swift-evolution/blob/master/proposals/0269-implicit-self-explicit-capture.md>
79057918

79067919
[SR-106]: <https://bugs.swift.org/browse/SR-106>

0 commit comments

Comments
 (0)