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

Suggestion: require parenthesis where operator precedence is non-standard #13

Open
noam93k opened this issue Aug 30, 2022 · 0 comments
Open

Comments

@noam93k
Copy link

noam93k commented Aug 30, 2022

I noticed that the order of precedence for operators doesn't exactly conform to the guidelines that the rest of language follows: while in most places the compiler requires the programmer to be explicit (e.g. pack comments), precedence of operators is a (arbitrary?) choice of the compiler that will still confuse people who are used to excusing Aunt Sally.

What I would expect from Ok? is to raise a compiler error on expressions such as a + b * c, and require that the programmer either changes the order, or adds parentheses.

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

No branches or pull requests

1 participant