Skip to content

Commit b6b64c9

Browse files
authored
Merge pull request #42115 from calda/patch-1
Add SE-0345 to CHANGELOG.md
2 parents 1f7b0c7 + 9eb1983 commit b6b64c9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@ _**Note:** This is in reverse chronological order, so newer entries are added to
55

66
## Swift 5.7
77

8+
* [SE-0345][]:
9+
10+
It is now possible to unwrap optional variables with a shorthand syntax that
11+
shadows the existing declaration. For example, the following:
12+
13+
```swift
14+
let foo: String? = "hello world"
15+
16+
if let foo {
17+
print(foo) // prints "hello world"
18+
}
19+
```
20+
21+
is equivalent to:
22+
23+
```swift
24+
let foo: String? = "hello world"
25+
26+
if let foo = foo {
27+
print(foo) // prints "hello world"
28+
}
29+
```
30+
831
* [SE-0340][]:
932

1033
It is now possible to make declarations unavailable from use in asynchronous
@@ -9095,6 +9118,7 @@ Swift 1.0
90959118
[SE-0336]: <https://github.com/apple/swift-evolution/blob/main/proposals/0336-distributed-actor-isolation.md>
90969119
[SE-0343]: <https://github.com/apple/swift-evolution/blob/main/proposals/0343-top-level-concurrency.md>
90979120
[SE-0340]: <https://github.com/apple/swift-evolution/blob/main/proposals/0340-swift-noasync.md>
9121+
[SE-0345]: <https://github.com/apple/swift-evolution/blob/main/proposals/0345-if-let-shorthand.md>
90989122

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

0 commit comments

Comments
 (0)