💾 Archived View for freeshell.de › gemlog › 2021-07-21.gmi captured on 2023-11-14 at 08:21:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

My turn to operate

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 ;-)

back to gemlog