Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site druca.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!mtuxo!drutx!druca!mab From: mab@druca.UUCP (Alan Bland) Newsgroups: net.lang.c Subject: Re: C bites / programming style [if Message-ID: <975@druca.UUCP> Date: Fri, 13-Sep-85 18:53:46 EDT Article-I.D.: druca.975 Posted: Fri Sep 13 18:53:46 1985 Date-Received: Sat, 14-Sep-85 07:28:12 EDT Organization: AT&T Information Systems Laboratories, Denver Lines: 28 > to mention the fact that it lets me use cb(1). Speaking of cb, I have a gripe: > > switch(x) { > case 1: > ... > default: > } > > What's wrong with: > > switch(x) { > case 1: > ... > default: > } > > Much easier to see the control flow. Especially if you have 2 switches in a > row. The second style is another level of indentation compared to the first. Several switch statements inside a loop or two and you're off the edge of the page or screen sooner with #2 than with #1. I don't see that they're significantly different in readability (but I usually have no trouble adapting to anybody's indentation style, as long as they remain consistent). -- Alan Bland AT&T Information Systems, Denver CO {ihnp4|allegra}!druca!mab