4 ms·
Annoyingly, SmallTalk actually does this, so they got there first. The reason is that operators are just methods (and numbers are objects) and so arithmetic dis
by raddan 3y ago
Annoyingly, SmallTalk actually does this, so they got there first. The reason is that operators are just methods (and numbers are objects) and so arithmetic dispatches left to right unless parens are used, ala (1.+(2)).*(3)
- fbdab103 3y agoOutside of giving mathematicians a stroke, is that really unreasonable? I kind of like the idea of treating operations more regularly.
- skulk 3y agoI'm pretty sure APL (if not APL, definitely J) also does this too and APL was designed as a common "mathematical" language for expressing computation.