Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!gwyn@BRL.ARPA From: gwyn@BRL.ARPA (VLD/VMB) Newsgroups: net.lang.c Subject: Re: C bites / programming style Message-ID: <1275@brl-tgr.ARPA> Date: Fri, 6-Sep-85 04:23:49 EDT Article-I.D.: brl-tgr.1275 Posted: Fri Sep 6 04:23:49 1985 Date-Received: Sat, 7-Sep-85 07:12:09 EDT Sender: news@brl-tgr.ARPA Lines: 24 The curly braces { } have NOTHING to do with the if(). Code formatting rules that pretend otherwise are misleading. People who indent like if ( cond ) { stmt1 stmt2 } most likely do so because the compound statement { stmt1 stmt2 } is under control of the if(). The only slight possible quibble is that really the insides of a compound statement could be indented to show the scope of the compound statement: { stmt1 stmt2 } With 8-column tab spacing, though, this turns out to be unworkable, so virtually everyone using this style doesn't indent the insides of a compound statement.