emacs-lisp-style-guide
emacs-lisp-style-guide copied to clipboard
Body on the same line as a conditional form
I'm wondering if there should be a convention for two other kinds of cases:
(when something do-something)
versus
(when something
do-something)
or, as another case to be discussed separately:
(if foo bar baz)
versus
(if foo
bar
baz)
One might want to do that to save on lines when the condition and the body are short enough.
Should it be allowed, recommended, to avoid, forbidden, up to the writer ?
From what I've seen, it's a matter of taste.
What I really dislike is when if is in a "mixed" format
(if foo bar
baz)
This is quite difficult to read. Oneliner is fine with me for "short" forms, but I try to avoid the above.