2 ms·
Conversely, Smalltalk is left-to-right, so a + b * c is (a + b) * c which is simply a result of every operation being a message send - muddling the rules with
by tragomaskhalos 6y ago
Conversely, Smalltalk is left-to-right, so
a + b * c is (a + b) * c
which is simply a result of every operation being a message send - muddling the rules with precedence would be likewise confusing, and would ruin the simplicity of the grammar.
- guram11 6y agoand in forth a b + c * I believe language with "default precedence" was meant to help us write less (parenthesis) but in the long run we ended up abusing (it)