2 ms·
Well, < and > were designed visually to work in infix situations. The pointy end goes to the small thing; the wide end goes to the big thing. Parentheses are a
by kazinator 9y ago
Well, < and > were designed visually to work in infix situations. The pointy end goes to the small thing; the wide end goes to the big thing.
Parentheses are also visually designed. We could make a languagein which ) opens a list, and ( closes it. The machiine wouldn't care, but the code would look like this:
)defun add )a b(
)+ a b((
Visual matters!
Here is a mental trick that might help with < and > in Lisp reading. Forget the relationship to the math symbols, and think of it as music symbols:
< is crescendo (play gradually louder):
> is decrescendo.
- girzel 9y agoCrescendo/decrescendo is nice. I love prefixed notation, except I do find greater/less than a bit confusing. I expect your suggestion will help.