What about putting array.empty in object.d?

Steven Schveighoffer schveiguy at yahoo.com
Wed Mar 21 07:08:59 PDT 2012


On Wed, 21 Mar 2012 00:54:51 -0400, Daniel Murphy  
<yebblies at nospamgmail.com> wrote:

> FWIW, I would rather see `if (array)` translated to `if (array.length)`  
> and
> this become the recomended way to check if an array is empty.  Wouldn't  
> that
> remove the dependency on std.array for most of the cases?

+1

-Steve


More information about the Digitalmars-d mailing list