Date: Mon, 14 Feb 2005 20:52:15 -0500 From: Sergey Babkin <babkin@bellatlantic.net> To: "M. Warner Losh" <imp@bsdimp.com> Cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/ed if_ed.c Message-ID: <421155CF.DC261239@bellatlantic.net> References: <20050211220212.A32327@delplex.bde.org> <20050211.091716.32469757.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"M. Warner Losh" wrote: > > In message: <10137.1108121831@critter.freebsd.dk> > "Poul-Henning Kamp" <phk@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?421155CF.DC261239>