Open deb0ch opened 7 years ago
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.
I'm wondering if there should be a convention for two other kinds of cases:
versus
or, as another case to be discussed separately:
versus
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 ?