Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2005 12:37:11 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/ed if_ed.c 
Message-ID:  <10137.1108121831@critter.freebsd.dk>
In-Reply-To: Your message of "Fri, 11 Feb 2005 22:31:36 %2B1100." <20050211220212.A32327@delplex.bde.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20050211220212.A32327@delplex.bde.org>, Bruce Evans writes:

>> : 	while (complicated-expr)
>> : 		;

Look, programming is the art of expressing intent as best as 
possible.  The single semicolon variant is very clear from
a compiler point of view, but it is not clear from a human
point of view.

I always use the continue variant because I feel it expresses
intent better for two reasons:

The visual impact of a word is much bigger than that of a single
lightweight character.

Writing "continue" dispells any doubt if I did it intentionally.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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