Questions tagged [precedence]
For questions relating to the order of evaluation of operators in a programming language.
3 questions
10
votes
3
answers
1k
views
What should be the precedence of the bitwise operators relative to each others?
In C, the relative precedence of bitwise operators is as follows, from high to low precedence:
...
8
votes
3
answers
176
views
Relative precedence of let and if expressions
In a language with standard let and if expressions, what should be the their precedence such that they can be nested without parentheses?
For example, I want to be able to parse both of these ...
5
votes
2
answers
233
views
Why choose a left-to-right convention?
On the subject of associativity when all operators have equal precendence, Ken Iverson writes in Conventions Governing Order of Evaluation that
The reasons for choosing a right-to-left instead of a ...