Skip to content

Fix parenthesized conditions in if-else assignment #3766

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

Closed
wants to merge 1 commit into from

Conversation

lumeet
Copy link

@lumeet lumeet commented Dec 30, 2014

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?

@jashkenas
Copy link
Owner

Nifty. What do y'all think about the condition checked here?

@GeoffreyBooth
Copy link
Collaborator

Moved to #4519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants