Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 09:53:55 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        Chris Rees <crees@FreeBSD.org>
Cc:        Andrew Turner <andrew@freebsd.org>, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r240549 - head/sys/arm/tegra
Message-ID:  <20120916095355.GA83285@FreeBSD.org>
In-Reply-To: <CADLo83-5zQBdf3ndBXO4qbkXJgaFPxGfE86LSDGqJ4g3k_4gkw@mail.gmail.com>
References:  <201209160755.q8G7tnMH036332@svn.freebsd.org> <20120916092818.GA81952@FreeBSD.org> <CADLo83-5zQBdf3ndBXO4qbkXJgaFPxGfE86LSDGqJ4g3k_4gkw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 16, 2012 at 10:37:56AM +0100, Chris Rees wrote:
> On 16 September 2012 10:28, Alexey Dokuchaev <danfe@freebsd.org> wrote:
> > I thought preferred and more style(9) compliant way to code [empty
> > endless loop] is:
> >
> >         for (;;)
> >                 continue;
> 
> Actually:
> 
> for (;;)
>         ;

Explicit "continue" is supposed to tell reviewer that original author did
not make a typo, but indeed knew what he was doing.  Lonely semicolon is too
ambiguous in this case.

./danfe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120916095355.GA83285>