"Bill Stoddard" <[EMAIL PROTECTED]> 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 | [EMAIL PROTECTED] | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...