Re:Better Clojure formatting
by dmitriid on Friday December 07, 2018 @08:51AM
(#18627590)
Nah. I still don't see the difference :) To me all of these are some macros/functions that expect certain parameters. Makes it much easier to reason about code IMO (especially if they are indented similarly).
[ Parent
| on HN ]
Even the basic lisp mode in Vim recognizes the difference. There is a :set lispwords=... list of symbols that are operators. They get indented like this:
(lispword a b c
d e f
g h)
whereas symbols not in the set like this: (not-lispword a b c
d e f)
This is important so we don't end up with this: (let ((x y))
form
form)
or, vice versa, this: (list (item 1) (item 2)
(item 3) (item 4))