Skip to content

Fix parenthesized conditions in if-else assignment #4519

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

Merged
merged 4 commits into from
Apr 19, 2017

Conversation

GeoffreyBooth
Copy link
Collaborator

Copied from #3766 by @lumeet (I cleaned up the code slightly):

This addresses at least #3309 and #3738 and has to do with parenthesized existential operator. After turning it back and forth several times, I couldn’t find anything more elegant than this. I’m not sure if it requires something more fundamental to make the check with some more beauty. Additionally, in what case it could possibly generate extra parentheses now?

This looks good to me. It’s been waiting long enough. Pull the trigger? Merge it into 2?

Copy link
Collaborator

@lydell lydell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GeoffreyBooth GeoffreyBooth merged commit bfce054 into jashkenas:master Apr 19, 2017
@GeoffreyBooth GeoffreyBooth deleted the 3738 branch April 19, 2017 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants