3 ms·
If Lisp uses indentation and not parenthesis, then why is my mental caricature of Lisp just ((())))(()))((())))()()()(())))((())))?
by egypturnash 8y ago
If Lisp uses indentation and not parenthesis, then why is my mental caricature of Lisp just ((())))(()))((())))()()()(())))((())))?
- nabla9 8y agoS-expressions are used for other things as code as well. Like representing just data. Your example expressed in Python is something like [[[]],[],[[],[]] ...
- kazinator 8y agoEducated guess: because you have zero experience developing an application or utility program in a language in the Lisp family. Because then if you still harbored a caricature, it would probably be more sophisticated.
- grzm 8y agoBecause it’s just that, a caricature. Having spent enough time using sexps (primarily in Clojure) I’ve found that with a decent editor it is about identation and line breaks, which is generally true of most languages.
- bjoli 8y agoBecause you never really tried it for longer than 25 seconds?