if(arr) now a warning

Namespace via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 04:42:41 PDT 2015


On Friday, 10 April 2015 at 11:18:16 UTC, bearophile wrote:
> Martin Krejcirik:
>
>> I agree, people should just use arr.length.
>
> People should probably use "arr.empty".
>
> Bye,
> bearophile

Comes to the same thing: 
https://github.com/D-Programming-Language/phobos/blob/master/std/range/primitives.d#L1957


More information about the Digitalmars-d mailing list