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

Strict comparison operators should have lower precedence than ordered comparison operators #29

Closed
thejoshwolfe opened this issue Dec 12, 2015 · 1 comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase.
Milestone

Comments

@thejoshwolfe
Copy link
Contributor

a < b == c < d should be parsed as (a < b) == (c < d).

This should be a compile error: a == b == c also a != b != a. Simply use parenthesis if you want this kind of thing.

@thejoshwolfe thejoshwolfe added the enhancement Solving this issue will likely involve adding new logic or components to the codebase. label Dec 12, 2015
@thejoshwolfe thejoshwolfe changed the title Equality operator should have lower precedence than less than Strict comparison operators should have lower precedence than ordered comparison operators Dec 13, 2015
@andrewrk andrewrk added this to the 0.1.0 milestone Apr 25, 2016
@thejoshwolfe
Copy link
Contributor Author

retracting this idea in favor of #114.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase.
Projects
None yet
Development

No branches or pull requests

2 participants