Carmack about static analysis

Walter Bright newshound2 at digitalmars.com
Mon Dec 26 12:55:08 PST 2011


On 12/26/2011 3:47 AM, Jacob Carlborg wrote:
> It's like when you see code like this (Ruby):
>
> unless !foo
>
> end
>
> Double negation. Code like the snippet above can be really annoying.

In general, variables and conditions should never be labeled with negation:

     bool notFeature;


More information about the Digitalmars-d mailing list