klmr / named-operator

Named operators for C++
Other
494 stars 32 forks source link

Right associativity #1

Open mathstuf opened 10 years ago

mathstuf commented 10 years ago

By making the right operator higher precedence than the left one, right associativity can be made. [Parentheses suck, obviously. :P ]

klmr commented 10 years ago

Hmm, I’m not convinced that right associativity would in general be desirable. Most of C++’ operators (except assignment) are left associative, this should generally be preserved in order to avoid confusion.