14 ms·
The Lisp version looks similar to the Python code, plus parentheses. As a Lisp user I would read the Lisp code just like the Python code, by largely ignoring th
by lispm 4y ago
The Lisp version looks similar to the Python code, plus parentheses. As a Lisp user I would read the Lisp code just like the Python code, by largely ignoring the parentheses, looking at the indentation and blocks of code. As a Lisp user working with code manipulation I then profit from that Lisp can be pretty printed by a tool, since the indentation is not The dangling parentheses then don't add any value. Actually they waste space and are getting in the way when typing to a read-eval-print-loop (REPL).
I haven't seen anyone typing to a REPL dangling parentheses.
CL-USER 23 > (defun foo (a)
(list
(list
a b c
)
)
)
FOO
What I always see is compact code like this:
CL-USER 24 > (defun foo (a)
(list (list a b c)))