logoalt Hacker News

Smalltalker-80yesterday at 10:01 AM1 replyview on HN

Thanks indeed. Using a simple left-to-right evaluation is the most logical solution. You can reorder expressions to use less parentheses and make them easier to read. E.g.: Smalltalk :-). But this requires everyone un-learning their primary school maths of e.g. multiply-before-add, so it's not popular. Having hand-picked operator precedences complicates things further when you allow operator overloading and user defined operators. E.g. Swift has special keywords to specify precedence for these. Ick...


Replies

NetMageSCWyesterday at 6:06 PM

APL uses a simple right to left order of evaluation :)