Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 (Fortune 01.1b1); site graffiti.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!qantel!dual!lll-crg!seismo!ut-sally!ut-ngp!shell!graffiti!peter From: peter@graffiti.UUCP (Peter da Silva) Newsgroups: net.lang.c Subject: Re: C bites / programming style [if Message-ID: <187@graffiti.UUCP> Date: Wed, 11-Sep-85 07:04:58 EDT Article-I.D.: graffiti.187 Posted: Wed Sep 11 07:04:58 1985 Date-Received: Sat, 14-Sep-85 07:03:06 EDT References: <418@phri.UUCP> <700002@fthood> Organization: The Power Elite, Houston, TX Lines: 26 > I like this programming style myself, Roy. But, one suggestion...if you move > the braces over, you end up with the braces in line with the level of > complication, and then *only* the opening and closing braces of a function are > in the first column, thus: Careful now: what you're doing here is a matter of personal style. I put the {} at the same level as the if/while/for and find *that* much easier to understand, and autoindent works just fine (translation: what are you referring to?). Not 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.