Forbid dynamic arrays in boolean evaluation contexts

Phil Lavoie maidenphil at hotmail.com
Mon Mar 25 10:09:43 PDT 2013


On Monday, 25 March 2013 at 16:46:46 UTC, Dmitry Olshansky wrote:
> 25-Mar-2013 20:43, Phil Lavoie пишет:
>> I do believe that, in any case, this form is best:
>> if( arr !is null && !arr.empty )
>>
>
> Now write that one thousand times and count the typos.
>
>> Peace,
>> Phil

A thousand? !arr.empty instead of arr.length? Was that your point?


More information about the Digitalmars-d mailing list