-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Braceless Else on Braced Expressions #1686
Conversation
} else if bar() { | ||
do_this_other_thing() | ||
} else { | ||
match baz() { |
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.
How often does something like this actually occur?
RFC is missing a section on changes to the grammar. |
I'm not really in favour of any change here, but if we really want something, I'd prefer |
I'll make a different, more specific proposal then. |
Make braces around
else
body optional on single expressions that require braces to increase brevity.Addresses issue #1616.