You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2023. It is now read-only.
that adds `switch` statement support to function builders!
29
+
30
+
In that pull request, Doug pushed [a commit](https://github.com/apple/swift/commit/ea8d143f6425e4db7ba78df82776cc075add1e22)
31
+
after a code review from [John McCall](https://twitter.com/pathofshrines) who
32
+
noted a subtle omission in constraint generation that affected the semantics of
33
+
switch statements in function builders.
34
+
35
+
Yay for code review. @pathofshrines noted a subtle omission in constraint generation that affected the semantics of switch statements in function builders. The fix was trivial but the implications are really interesting
36
+
37
+
[David Smith](https://twitter.com/Catfish_Man) and [Tim K](https://github.com/tbkka) merged [a pull request](https://github.com/apple/swift/pull/30329) that provides a speedup for bridging
> this means we finally won’t have a billion arm64e merge conflicts every
46
+
single week
47
+
48
+
Pretty neat!
32
49
33
50
### Proposals in review
34
51
35
52
[SE-0280](https://github.com/apple/swift-evolution/blob/master/proposals/0280-enum-cases-as-protocol-witnesses.md): *Enum cases as protocol witnesses* is [under review](https://forums.swift.org/t/se-0280-enum-cases-as-protocol-witnesses/34257).
36
53
54
+
> The aim of this proposal is to lift an existing restriction, which is that
55
+
enum cases cannot participate in protocol witness matching.
56
+
>
57
+
> Currently, Swift has a very restrictive protocol witness matching model where
58
+
a protocol witness has to match _exactly_ with the requirement, with some
59
+
exceptions (see [Protocol Witness Matching Manifesto](https://forums.swift.org/t/protocol-witness-matching-mini-manifesto/32752)).
60
+
37
61
[SE-0279](https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md): *Multiple Trailing Closures* is [under review](https://forums.swift.org/t/se-0279-multiple-trailing-closures/34255).
38
62
63
+
> Since its inception, Swift has supported _trailing closure_ syntax, which is
64
+
a bit of syntactic sugar that makes passing closures more ergonomic. Trailing
65
+
closures have always had two restrictions that limited their applicability.
66
+
First, that any call is limited to a single trailing closure, making the
67
+
feature awkward or even unusable when an API has more than one callback. This
68
+
limitation was noticed [very early on in Swift's
69
+
lifetime](https://www.natashatherobot.com/swift-trailing-closure-syntax/) as
70
+
"the" problem with trailing closure syntax. Second, that a trailing closure
71
+
argument does not provide an argument label, which can lead to call sites that
72
+
are less clear. This proposal removes both restrictions by providing an
73
+
unambiguous syntax for providing multiple, labeled trailing closures in a call,
0 commit comments