Subject: Re: Parentheses and KNF
To: John F. Woods <jfw@jfwhome.funhouse.com>
From: None <proff@iq.org>
List: current-users
Date: 08/21/1998 01:32:43
> > Sounds good, except that there shouldn't be any spaces between similar
> > parentheses - )), not ) ).
> 
> When I parenthesize to explain code to humans, rather than the compiler,
> I feel that some added space (especially around complex sub-parenthesized
> expressions) is valuable.  Now, since one goal of KNF is to make all code
> look similar, issues of taste like that are exceedingly hard to regularize,
> but KNF ought not to get in the way of code readability; if you _want_ the
> IOCCC, I trust that you know where to find it.

One thing I can not stand is this:

	if( foo )

rather than:

	if (foo)

Which seems to have gained popularity among windows programers
recently. Does anyone know why? I can't imagine it being the sort
of uglyness that any two people would invent independently.

Cheers,
Julian.