by kbp · 6y ago · 0 comments
For my eyes, [] aren't distinct enough from () to make the second style preferable. I'd rather have indentation to set it apart.
def
foo(x)
bar(x)
end
as an example of Ruby syntax being overly homogeneous. (defun averagenum (n1 n2 n3 n4)
(/ (+ n1 n2 n3 n4)
4))
The typical pattern is DEFSOMETHING name arglist
body
A Lisp programmer reads those structural patterns, not the delimiters.Lisp programming is more about thinking of trees of code and their possible manipulation - even independent of a visual notation and especially independent of the exact delimiter used.
The delimiters are in shape recognition much less important than the shape itself.
I wrote it that way so it's easier for non-lisp programmers to compare with what they're more used to as well.