3 ms·
Prefix arithmetic is easier to read: (+ 3 4 (- 1 (/ 3 4) (* (- 9 2) 8 3)) You can see straight away that the whole th
by parenthesis 19y ago
Prefix arithmetic is easier to read:
(+ 3
4
(- 1
(/ 3 4)
(* (- 9 2)
8
3))
You can see straight away that the whole thing is one big addition; that the third summand is a subtraction, etc..
Also, a lot of math is prefix: f(x,y) ; d/dx (...) etc..
- ivankirigin 19y agoI never understood why this was an issue. People are really used to writing prefix functions in all languages def foo( bar, baz): And I've never really had a hard time with reading arithmatic, so the debate really leaves me scratching my head.