Date: Thu, 10 Feb 2005 17:31:23 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: max@love2party.net Cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/ed if_ed.c Message-ID: <20050210.173123.20914349.imp@bsdimp.com> In-Reply-To: <200502110109.55898.max@love2party.net> References: <200502102331.j1ANVRQP026186@repoman.freebsd.org> <86sm44nez7.fsf@xps.des.no> <200502110109.55898.max@love2party.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200502110109.55898.max@love2party.net>
Max Laier <max@love2party.net> writes:
: On Friday 11 February 2005 00:59, Dag-Erling Smørgrav wrote:
: > Warner Losh <imp@FreeBSD.org> writes:
: > > Log:
: > > use
: > > while (complicated-expr)
: > > continune;
: > > in preference to
: > > while (complicated-expr);
: >
: > As a matter of taste, I prefer /* nothing */ to continue in cases like
: > this.
:
: That's what style.9 suggests, btw:
: | for (p = buf; *p != '\0'; ++p)
: | ; /* nothing */
It also says forever loops are done with for, not while, just before.
Clearly, this isn't a forever loop, nor is the example.
Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050210.173123.20914349.imp>
