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
|