Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAmend RFC1228 with operator fixity and precedence #1319
Conversation
nagisa
force-pushed the
nagisa:placement-fixity
branch
3 times, most recently
from
a8385ef
to
fccb3b2
Oct 13, 2015
This comment has been minimized.
This comment has been minimized.
|
Something I noticed with option number 1, that it introduces an inconsistency in parsing between Also cc @pnkfelix. |
nagisa
force-pushed the
nagisa:placement-fixity
branch
from
fccb3b2
to
1f0fb30
Oct 14, 2015
This comment has been minimized.
This comment has been minimized.
|
You should add this downside to the text of proposal 1 |
nagisa
force-pushed the
nagisa:placement-fixity
branch
from
1f0fb30
to
4958c86
Oct 14, 2015
nrc
added
the
T-lang
label
Oct 15, 2015
nikomatsakis
assigned
pcwalton and
pnkfelix
and unassigned
pcwalton
Oct 15, 2015
This comment has been minimized.
This comment has been minimized.
|
@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 ...") |
nagisa
force-pushed the
nagisa:placement-fixity
branch
from
4958c86
to
33775e6
Oct 15, 2015
This comment has been minimized.
This comment has been minimized.
|
@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 ;) |
nagisa
changed the title
Amend RFC1228 with operator fixity
Amend RFC1228 with operator fixity and precedence
Oct 15, 2015
aturon
added
the
I-nominated
label
Mar 10, 2016
This comment has been minimized.
This comment has been minimized.
|
Hear ye, hear ye. This RFC is now entering final comment period. |
nikomatsakis
added
final-comment-period
and removed
I-nominated
labels
Mar 21, 2016
nrc
reviewed
Apr 4, 2016
|
|
||
| 3. More than assignment and binop-assignment, but less than any other operator: | ||
|
|
||
| This is what currently this RFC proposes. This allows for various |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
It seems to me that |
This comment has been minimized.
This comment has been minimized.
|
@huonw The way I see it, at least. |
This comment has been minimized.
This comment has been minimized.
|
@nagisa I feel that most cases will require |
This comment has been minimized.
This comment has been minimized.
|
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 |
nagisa commentedOct 13, 2015
#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.