|
|
|
|
|
by Someone
30 days ago
|
|
I would hope they implemented it with precedence numbers, as any other way is likely to be harder to write and lead to inconsistencies. It’s harder to write because users will want to use expressions with more than one operator such as b * b - 4 * a * c
a * b + c * d > e * f and g < h
|
|
However, the following expressions should be invalid in any language, and no one should write them even in languages where they are unfortunately allowed: