From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gordon Hogan To: 9fans@cse.psu.edu Subject: Re: [9fans] Sam question MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010817223532.73AB8199F3@mail.cse.psu.edu> Date: Fri, 17 Aug 2001 18:35:27 -0400 Topicbox-Message-UUID: e238e564-eac9-11e9-9e20-41e7f4b1d025 > I hear this argument from Gnuers and the like. If it's a problem, > your identifiers are too long or your functions are too long (thus > your block nesting is too deep). In the case of Gnu code, both are > true. Another common reason is that people don't know how to use continue. Eg, instead of writing: for(p = example; p != nil; p = p->next) { q = p->fish; if(q->foo > 4 && q->bar < 3) { r = q->blarg; if(r->foo == 7) { dosomething(r); r->done++; } } } it is stylistically preferable to write for(p = example; p != nil; p = p->next) { q = p->fish; if(q->foo <= 4 || q->bar >= 3) continue; r = q->blarg; if(r->foo != 7) continue; dosomething(r); r->done++; } Notice the difference this makes in the indentation. I think it's also slightly more readable, but YMMV.