arrays: if(null == [ ])

Alex Rønne Petersen alex at lycus.org
Wed May 16 07:26:49 PDT 2012


On 16-05-2012 16:23, bearophile wrote:
> Steven Schveighoffer:
>
>> Regardless, we should fix if(!arr) to mean if(!arr.length).
>
> This seems a nice idea (and Python programmers will be thankful, because
> they are used to empty collections/strings to be false). Is this request
> in Bugzilla? Are people opposed to this little D breaking change?
>
> Bye,
> bearophile

I would be very happy about this change, too.

-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org


More information about the Digitalmars-d mailing list