Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!ncar!boulder!tramp!swarbric From: swarbric@tramp.Colorado.EDU (Frank Swarbrick) Newsgroups: comp.lang.c Subject: Re: Standard Indentation etc. Message-ID: <5358@boulder.Colorado.EDU> Date: 15 Dec 88 23:14:58 GMT References: <663@htsa.uucp> <832@husc6.harvard.edu> <22249@apple.Apple.COM> Sender: news@boulder.Colorado.EDU Reply-To: swarbric@tramp.Colorado.EDU (Frank Swarbrick) Organization: Beautiful Boulder By The Bay Lines: 29 While we're on the subject, how about switch statements? This is how I do them: switch(c) { case 'a': statement1; statement2; break; /* more cases, etc... */ } I do it this way even if I only have one statement. I used to do it this way: switch(c) { case 'a':statement1; statement2; break; /* etc... */ } But that shifted everything too far to the right, and I couldn't always get the second statement exact by just using the tab key. (ie, I had to do a few tabs and then press space once or twice.) (Note that I use a tab of three spaces.) Frank Swarbrick (and, yes, the net.cat) University Of Colorado, Boulder swarbric@tramp.Colorado.EDU ...!{ncar|nbires}!boulder!tramp!swarbric "Loneliness: a constant friend and lover I know well" --Asia