cvs commit: src/sys/dev/ed if_ed.c

Sergey Babkin babkin at bellatlantic.net
Tue Feb 15 01:53:26 GMT 2005


"M. Warner Losh" wrote:
> 
> In message: <10137.1108121831 at critter.freebsd.dk>
>             "Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
> : Writing "continue" dispells any doubt if I did it intentionally.
> 
> There are also compilers that will issue warnings for while (xxxx);,
> but not for while (xxx) continue;, which is where I picked up the
> habit in the deep, recesses of time...

Recently I've picked another style which I like now better than
anything I've seen before:

  while(xxxx)
       { }

The "{ }" is more meaty than just a ";" yet it communicates very
clearly that it's an empty loop body. (I've picked it from the
style of C++ constructor with empty body, but I like it for the
loops as well).

-SB


More information about the cvs-src mailing list