-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Amend RFC1228 with operator fixity and precedence #1319
Conversation
a8385ef
to
fccb3b2
Compare
Something I noticed with option number 1, that it introduces an inconsistency in parsing between Also cc @pnkfelix. |
fccb3b2
to
1f0fb30
Compare
You should add this downside to the text of proposal 1 |
1f0fb30
to
4958c86
Compare
@nagisa where did the term "fixity" come from? Isn't this property usually referred as "precedence"? (When i hear "fixity" I usually think "infix vs prefix vs ...") |
4958c86
to
33775e6
Compare
@pnkfelix I fixed my terminology in some places some time ago, but forgot to commit and push it, apparently. it comes from my background with haskell and “fixity” has the same meaning as “operator associativity”. That’s what writing RFCs late in the evening gets you ;) |
Hear ye, hear ye. This RFC is now entering final comment period. |
|
||
3. More than assignment and binop-assignment, but less than any other operator: | ||
|
||
This is what currently this RFC proposes. This allows for various |
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.
grammar nit: "This is what this RFC currently proposes"
It seems to me that |
@huonw The way I see it, at least. |
@nagisa I feel that most cases will require |
Huzzah! The @rust-lang/lang team has decided to accept this RFC. However, we also decided to add an official unresolved question to revisit this question when |
#1228 left a pretty bikesheddable and important question unanswered: the fixity of the proposed operator.
Associativity is a no-brainer; precedence needs to be decided on.