4 ms·
Infix doesn't require operator precedence, it's just something we've adopted from math. Notice that you've flattened the parse tree in the second example. A fai
by urethrafranklin 9y ago
Infix doesn't require operator precedence, it's just something we've adopted from math. Notice that you've flattened the parse tree in the second example. A fair comparison would be:
(2 f (3 g 4))
which is arguably how most sane engineers would write it.
- zumatic 9y agoNo, it requires precedence to distinguish between (2 f (3 g 4)) and ((2 f 3) g 4) > which is arguably how most sane engineers would write it I'm always wary of this sort of statement.
- urethrafranklin 9y agoUm, what? How would you tell the difference between (f 2 (g 3 4)) and (g (f 2 3) 4)?