Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site 3comvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!oliveb!3comvax!mikes From: mikes@3comvax.UUCP (Mike Shannon) Newsgroups: net.lang.c Subject: Re: C bites / programming style Message-ID: <209@3comvax.UUCP> Date: Wed, 4-Sep-85 13:35:28 EDT Article-I.D.: 3comvax.209 Posted: Wed Sep 4 13:35:28 1985 Date-Received: Fri, 6-Sep-85 02:48:11 EDT References: <418@phri.UUCP> <700002@fthood> Organization: 3Com Corp; Mountain View, CA Lines: 24 With regard to changing if(condition) { | if(condition) s1; into { s2; | s1; } | s2; | } [the idea is to indent the braces so that they are in the same column as the statements they enclose] Why do you like this style? This seems to indicate that the braces are associated in your mind with the enclosed statements. In my mind, the braces are associaed with the 'if' statment, and so they should be indented at the same column as the 'if'. I look for the closing brace in the same column to be a sort of 'statement terminator' (i.e. when I see it, I think "Ah, the end of the if statement"). I've seen this unusual indentation style before, and I'm curious if you developed a preference for it in learning some other language? For some reason, I find this style to be especially hard to read. Anybody else feel the same way? -- Michael Shannon {ihnp4,hplabs}!oliveb!3comvax!mikes