if(arr) now a warning

via Digitalmars-d digitalmars-d at puremagic.com
Mon May 4 03:27:47 PDT 2015


On Friday, 10 April 2015 at 10:14:43 UTC, Martin Nowak wrote:
> if (arr) -> if (!arr.empty)
>
> It's much clearer and also what you need to write when you work 
> with ranges.

Maybe rename it "opEmpty" then.

Try to keep language protocols and library conventions separate.


More information about the Digitalmars-d mailing list