2 ms·
Dijkstra's last published thoughts on the merits of infix notation for associative operators come to mind[1]: "It made me realize why I like it so much for asso
by User23 7y ago
Dijkstra's last published thoughts on the merits of infix notation for associative operators come to mind[1]: "It made me realize why I like it so much for associative operators: it allows us to write p+q+r without being forced to choose between (p+q)+r and p+(q+r); in prefix notation, the choice between ++pqr and +p+qr would have been unavoidable."
This show the obvious merit of parenthesis for prefix notation, since then one can write (+ p q r). In essence, the + operator distributes over the operands.
[1] https://www.cs.utexas.edu/users/EWD/transcriptions/EWD13xx/EWD1300.html https://www.cs.utexas.edu/users/EWD/transcriptions/EWD13xx/E...