💾 Archived View for freeshell.de › gemlog › 2021-07-21.gmi captured on 2024-05-10 at 11:18:29. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
Following on from:
RE: There are reasons for operators
operator: 5 + 7 function: add(5, 7) Lisp style: (+ 5 7)
I suggest that there are no real differences here. But because of the way we learn arithmetic, the first one seems "natural". Maybe we shouldn't be taught infix operators at school? All schools and mathematicians should change the way they express operations. Maybe if I say "please"?
3 + 5 * 7
Oh poop. Now I need precedence rules or brackets.
+ 3 * 7 5
Yay, no ambiguity. No brackets. Unless it's Lisp ;-)