In message <[email protected]> Andrew Kenneth
Milton writes:
: The only arguments I've seen for less 'punctuation' are
:
: a) "I" don't need them
: b) "I" don't like what it looks like with them
: c) There might be bugs introduced due to parens.
:
: Well a and b are crap, and c is no worse off than we are now, since
: there seems to be bugs caused by a lack of them.
A and B aren't crap.
Style(9) should allow extra parens in very complex situations, but
still prohibit them in innane ones:
if ((a < 0) && (b < 0))
should be prohibited since the designers of C anticipated this and
made
if (a < 0 && b < 0)
do the right thing. The latter is easier on the eyes and uses the 80
columns better.
I do agree that complex things like:
if (a | b & c % d ^ e)
should really have some parents to show what is going on.
So I agree with phk on this one: Use fewer parens generally, but use
common sense in adding them in the more obscure cases where they do
legitimately add readability.
Warner
To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-current" in the body of the message