4 ms·
What I mean is that you can't write "2 + 3 * 4", not even with implicit LTR, you have to write either "(2 + 3) * 4" or "2 + (3 * 4)". See e.g the "precedence b
by nigeltao 9y ago
What I mean is that you can't write "2 + 3 * 4", not even with implicit LTR, you have to write either "(2 + 3) * 4" or "2 + (3 * 4)".
See e.g the "precedence bug" comment I wrote elsewhere on this page.
- masklinn 9y agoMy point is that's not "equal precedence". Smalltalk has equal precedence, "2 + 3 * 4" parses as "(2 + 3) * 4". If you reject the expression entirely you don't have equal precedences, you have unmixable operators or precedences (the latter being if "2 + 3 - 4" is still allowed).
- nigeltao 9y agoOK, I'll change the wording. Thanks.