Quoting Steve Holdoway <[EMAIL PROTECTED]>:

> On Tue, 16 May 2006 18:55:16 +1200
> Rex Johnston <[EMAIL PROTECTED]> wrote:
> 
> > Dale DuRose wrote:
<snip> 
> The other appalling shortcut at this point is missing out the braces and
> just using the next line as the 'do something' bit. Great until you need
> to do more than one thing, and forget.

And then there are the people who insist on making the <iteration action> the
<do something> and having empty curly brackets following the end ')' .  makes
for interesting reading.

Eg, 
#define LARGE 50
int main(void)
{
   int i;
   char b[LARGE];
   for (i = 0; i >= LARGE; b[i++]){}
}

As i say, hairy code.  ;)

Wesley Parish
> 
> Those who indent as follows...
> 
>  for ( initial configuration,...; End conditon; iteration action,... )
> {
>       do something...
>  }
> 
> are adopting a method designed to save paper on a hardcopy teletype, so
> beware!
> 
> My $0.02,
> 
> 
> Steve
> C bodger since 1984. K&R rules!
> 
>  



"Sharpened hands are happy hands.
"Brim the tinfall with mirthful bands" 
- A Deepness in the Sky, Vernor Vinge

"I me.  Shape middled me.  I would come out into hot!" 
I from the spicy that day was overcasked mockingly - it's a symbol of the 
other horizon. - emacs : meta x dissociated-press

Reply via email to