Carmack about static analysis

Adam D. Ruppe destructionator at gmail.com
Sun Dec 25 18:31:51 PST 2011


On Monday, 26 December 2011 at 00:40:47 UTC, Andrei Alexandrescu 
wrote:
> I understand. Personally, I am unable to bring myself to fathom 
> why writing this has any advantage:

if(condition) return false just avoids a negation in the
condition.

It's easier to miss a "!" entirely than to miss a "return false",
and personally, I've been finding it takes an extra brain cycle
to invert a condition anyway.

I like an individual line of code to be dumb as a rock anyway.



More information about the Digitalmars-d mailing list