Path: utzoo!utgpu!watmath!clyde!att!ihlpb!gregg From: gregg@ihlpb.ATT.COM (Wonderly) Newsgroups: comp.lang.c Subject: Re: style wars Message-ID: <9222@ihlpb.ATT.COM> Date: 19 Dec 88 17:03:58 GMT References: <14128@oberon.USC.EDU> Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 25 From article <14128@oberon.USC.EDU>, by blarson@skat.usc.edu (Bob Larson): ] Since this flamefest has come up again, I thought I would contribute ] something I consider more readable than the "standard" representation. ] Null statements are sometimes useful in C, mainly as loop bodies. ] ] Some people use semicolon on a line by itself for the null statment. ] I prefer a pair of braces: ] ] for(p = FIRST; p->next != NULL; p = p->next) ] ; ] ] looks strange to me, and takes two vertical lines. ] ] for(p = FIRST; p->next != NULL; p = p->next) {} I prefer for(p = FIRST; p->next != NULL; p = p->next) continue; which is completely obvious and not so strange... -- It isn't the DREAM that NASA's missing... DOMAIN: gregg@ihlpb.att.com It's a direction! UUCP: att!ihlpb!gregg