use of { in c

utzoo!decvax!microsof!gordonl utzoo!decvax!microsof!gordonl
Fri Oct 22 18:40:07 AEST 1982


I'm opposed to the style:

	if (...expr...)
	{
		statements
	}

as I feel that white space is a very powerful style tool.  I use
white space to delimit "paragraphs" of code which each perform
some particular aspect of the work at hand.  The above style
forces a
	{
line, which is nearly all white space, in the middle of the 
if-expr-statement grouping.  The trailing "}" is OK as the
end of the conditional is an event worthy of the lexical
attention that white space engenders.

	gordon letwin
	microsoft



More information about the Comp.lang.c mailing list