httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: Minor(?) style questions
Date Mon, 11 Mar 2002 14:07:02 GMT
"Bill Stoddard" <bill@wstoddard.com> writes:

> -----
> > Hi,
> >
> > 2) How should a do {} while look like?
> >
> >    do {
> >        ...
> >    } while (...);
> >
> >    or
> >
> >    do {
> >        ...
> >    }
> >    while (...);
> >
> 
> The first style is more compact and not less readable than the second, IMO.
> 
> >
> > 3) What is the preferred method of doing an infinite loop?
> >
> >    while (1) {
> >        ...
> >    }
> >
> >    or
> >
> >    for (;;) {
> >        ...
> >    }
> >
> I like using the while(1) style. No justification ...
> 
> >
> > Thanks,
> >
> > Sander
> 
> I would prefer to keep the style guidelines as small as possible.

+1!

> I would be in favor of
> adding 2) to the existing guidelines

+0.4   (slightly nicer style IMHO, but such a specification conflicts
       with desire to keep the style guidelines simple)

> and leaving 1) and 2) personal choice.

if you mean "leaving 1) and 3) personal choice": +1

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message