-
Notifications
You must be signed in to change notification settings - Fork 440
Introduce do
expressions
#2195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce do
expressions
#2195
Conversation
f164c08
to
0c1ab96
Compare
0366279
to
9716727
Compare
c5a1930
to
c0376b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just a couple of minor comments.
Also: Is there any plan to deprecate/remove DoStmtSyntax
once do
expressions have been accepted?
3971f55
to
00c45d0
Compare
Yeah that's the plan |
@swift-ci please test |
Allow
do
anddo catch
statements to be treated as expressions if they either have single expression branches, or have terminatingthen
statements, following the same rules asif
/switch
expressions. This is currently gated behind an experimental feature flag pending evolution discussion.