I would just like to go on the record as really disliking typical Lisp indent style, even for Lisp code. I forget what they were now, but after using it for much of the summer I had 2 or 3 concrete reasons why I don't like it.
I think one of them was that if you had code like
- Code: Select all
(foo (....)
(.....)
(.....))
and decided that you really want to call
fizzbaz instead, all the subsequent lines' indentation change too:
- Code: Select all
(fizzbaz (....)
(.....)
(.....))
Some C indentation styles have this problem, some don't.
EDIT: Oh yes, now it's coming back. Another issue was that, because lines often closed parens from previous lines, even if there was a "logically distinct line" you couldn't necessarily just comment it out. For instance, if you were dealing with a let:
- Code: Select all
(let ((a (bar))
(b (baz)))
...)
and think that there may be a computation problem in b, you can just comment out line 2 because then it's syntactically invalid. This led to me usually writing let statements like
- Code: Select all
(let ((a (bar))
(b (baz))
)
...)
instead. There are some other similar issues, but lets were a big culprit here. But then when you do this, the "Emacs rules" for what column the ) should fall at when it appears on its own line are, I think, stupid.