On Monday, 5 February 2018 at 14:50:38 UTC, Steven Schveighoffer
wrote:
On 2/5/18 1:27 AM, H. S. Teoh wrote:
On Sun, Feb 04, 2018 at 02:34:31PM -0500, Steven Schveighoffer
via Digitalmars-d wrote:
[...]
I don't have a hard time with braces. It tends to be worse
with
parentheses. Generally these are indented properly, and not
}}}}} all
on one line.
Wait till you see Lisp code. :-P
I still have nightmares from my scheme class in college...
Literally the professor would be up at the whiteboard
scribbling a scheme function, and at the end, he would draw a
whole bunch of closing parentheses in a row, reciting the
opening parentheses for each one "car, cdr, ..."
I also have seen people's code who DID put all their closing
braces on one line. It was... awful.
When I programmed AutoLISP extension in AutoCAD I would use
parentheses in the exact same way as I use { } in C. So not at
the end of a line but vertically at the level of indentation;
(defun xy
(car
(cdr
(cons a b)
)
)
)
This made it much better to handle.