Skip to main content

Questions tagged [precedence]

For questions relating to the order of evaluation of operators in a programming language.

10 votes
3 answers
466 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: ...
WhiteMist's user avatar
  • 281
8 votes
3 answers
165 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 ...
Panda's user avatar
  • 249
5 votes
2 answers
191 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 ...
Adám's user avatar
  • 3,156