Open punund opened 4 years ago
There is a partial table of operator precedence here: https://github.com/gkz/LiveScript/blob/bc1c188f01298567bc689c979147829c6ac57213/src/grammar.ls#L460-L487
But it doesn't explain the logic for inserting implicit parentheses, which treats some tokens like <|
specially: https://github.com/gkz/LiveScript/blob/bc1c188f01298567bc689c979147829c6ac57213/src/lexer.ls#L1153
I agree, it would be better if all of this were actually in one place in the documentation.
I understand that tweaking operator precedence now means breaking legacy code.
But I still wish there were a table in the docs with operator precedence and associativity. Certain things, such as that precedence of
>>
is different from|>
and<|
regarding function appllication, are not obvious at all.