Skip to content
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

Extend neg_multiply lint to *= assignments #3375

Closed
wants to merge 1 commit into from

Conversation

fhartwig
Copy link
Contributor

Fixes #3037

@fhartwig
Copy link
Contributor Author

Actually, on second thought, the readability argument for using x = -x over x *= -1 is pretty tenuous, even though the former is one token shorter. This probably isn't a good idea, sorry for the noise.

@fhartwig fhartwig closed this Oct 28, 2018
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.

1 participant