Where do your braces go?

Subject: Where do your braces go?
From: Richard Mateosian <srm -at- C2 -dot- ORG>
Date: Fri, 4 Aug 1995 00:10:39 -0700

>The other one is in brace style, that is, where people put the
>braces that surround the body of a block statement. K&R does this:

>if ( n < 0) {
> foozle;
> blorffle;
> smotz;
>}


I prefer the Kernighan & Plaugher style from Software Tools (1976) and The
Elements of Programming Style (1974):

if ( n < 0) {
foozle;
blorffle;
smotz;
}

I'm sorry it never caught on. ...RM

Richard Mateosian http://www.c2.org/~srm/ President, Berkeley STC
Freelance Technical Writer srm -at- c2 -dot- org Review Editor, IEEE Micro


Previous by Author: Doc department staffing
Next by Author: Googolplex
Previous by Thread: Re: Hemisphere bias in language
Next by Thread: Re: Where do your braces go?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads