-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Operators and precedence proposal #168
Conversation
Not yet precommit-clean.
[Hasse diagrams](https://en.wikipedia.org/wiki/Hasse_diagram) to represent these | ||
partial orders, where operators with lower precedence are considered less than | ||
(and therefore depicted lower than and connected to) operators with higher | ||
precedence. In our diagrams, an enclosing arrow will be used to show |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be helpful to be explicit about the relation between the direction of the arrows and the associativity. From some cross checking, it seems that a rightward pointing arrow means left-associative and a leftward pointing arrow means right-associative. At first I guessed the opposite direction but then realized that it made for a nonsensical choice for subtraction because it caused one of the tests to break for the executable semantics.
We triage inactive PRs and issues in order to make it easier to find active work. If this PR should remain active, please comment or remove the |
We triage inactive PRs and issues in order to make it easier to find active work. If this PR should remain active or becomes active again, please reopen it. |
Initial import from carbon-proposals repository. Comments from the old pull request can be found in proposals/operators/comments.mht