4 ms·
SmallTalk has the left-to-right for everything principle because everything is message passing and "operators" are just binary (as in two argument) messages whi
by Jenk 3y ago
SmallTalk has the left-to-right for everything principle because everything is message passing and "operators" are just binary (as in two argument) messages which catches many out.
2 - 1 * 5
will return 5, while many would expect -3. You must apply parentheses if you want a precedence other than ltr.