Carmack about static analysis

Jacob Carlborg doob at me.com
Tue Dec 27 11:38:53 PST 2011


On 2011-12-26 21:55, Walter Bright wrote:
> 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;

I agree.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list