Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utastro.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!qantel!dual!lll-crg!seismo!ut-sally!utastro!nather From: nather@utastro.UUCP (Ed Nather) Newsgroups: net.lang.c Subject: Re: C bites / programming style Message-ID: <679@utastro.UUCP> Date: Mon, 9-Sep-85 19:36:20 EDT Article-I.D.: utastro.679 Posted: Mon Sep 9 19:36:20 1985 Date-Received: Fri, 13-Sep-85 05:08:03 EDT References: <418@phri.UUCP> <700002@fthood> <209@3comvax.UUCP> <735@umd5.UUCP> <35@andromeda.UUCP> Organization: U. Texas, Astronomy, Austin, TX Lines: 25 > I prefer: > > if(some condition) { > A statement; > Another Statement; > Some Garbage; > } > while(another condition) { > etc; > etc; > } > Dave Bloom That's also the style I use, except that I set the tabs every 4 spaces so several indents will still show on the page. I tried several styles (K&R, separate lines for each brace, etc) and finally settled on this one. I'm happy with it and find it very easy to follow. Gad, Dave ... I might even be able to read *your* code! -- Ed Nather Astronomy Dept, U of Texas @ Austin {allegra,ihnp4}!{noao,ut-sally}!utastro!nather nather@astro.UTEXAS.EDU