Most programming languages have a table of precedence and associativity for binary operators. Associativity matters in some cases e.g. (a - b) - c
!= a - (b - c)
.
However, for an associative operator like &&
it would seem not to matter, yet most languages list this as left associative.
Are there any situations where there is actually a difference between (a && b) && c
and a && (b && c)
?