A brace vs. indentation hypothesis (was Re: Braces are not Compiler-Fluff.)

Chip Salzenberg chip at ateng.ateng.com
Tue Jan 17 06:31:39 AEST 1989


According to bph at buengc.BU.EDU (Blair P. Houghton):
>       "Hint:  keep those braces as close
>        to their related syntactic element
>        as possible, or yer FIRED!.  Well, not
>        fired, per se, but I'll leave coding the
>        bitmaps for you to do..."

IMHO, this:

	if (condition && test) {
	    action();
	}

puts about 2 inches between "if" and "{", whereas this:

	if (condition)
	{
	}

makes the "if" and "{" adjacent.

I see two dimensions when I look at a program.  Apparently, not everyone
does.
-- 
Chip Salzenberg             <chip at ateng.com> or <uunet!ateng!chip>
A T Engineering             Me?  Speak for my company?  Surely you jest!
	  "It's no good.  They're tapping the lines."



More information about the Comp.lang.c mailing list