What about putting array.empty in object.d?

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Mar 20 21:55:16 PDT 2012


On Wed, Mar 21, 2012 at 05:27:01AM +0100, Andrej Mitrovic wrote:
> On 3/21/12, Nick Sabalausky <a at a.a> wrote:
> > Hear me out... ;)
> 
> Man I would say the same thing about write() functions. I've missed
> importing std.stdio so many times. It doesn't help that the compiler
> happily asks me if I've missed an import to std.stdio. But I digress..
> 
> I use .length all the time. I also use them on hashes and it sucks
> that .empty isn't defined for them (it's not in std.array).

Good point! I'll have to add .empty to my AA implementation. ;-)


T

-- 
A computer doesn't mind if its programs are put to purposes that don't
match their names. -- D. Knuth


More information about the Digitalmars-d mailing list