httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: Coding style
Date Wed, 04 Oct 2006 09:41:05 GMT
On Mon, Oct 02, 2006 at 05:01:51PM -0700, Roy T. Fielding wrote:
> In any case, I prefer the style of C code that more directly reflects
> the underlying assembly, even if an optimizing compiler would produce
> the same assembler for both.  It is just natural to read "use the result
> of this save operation for the test", as opposed to "save the result of
> the operation, discard it, read it back into memory and then test".

I agree with this.  A conditional test should scan like a boolean logic
expression.  The "stop, discard result" semantics of the comma operator
prevents that.

joe

Mime
View raw message