Revamping associative arrays

bearophile bearophileHUGS at lycos.com
Sun Oct 18 01:36:06 PDT 2009


bearophile:
> That you can use for example like this, to give an empty AA to a foo() function:
> foo(AA!(int, float));

I have just found that you can also use "null" there. It's less explicit because if you take a look at the call site only, you don't know that the receiver will need an AA.

That's why I'd like to disallow "null" to be used where an empty array can be given (and force the programmer to use [] there). This is also how Delight language works.

Bye,
bearophile



More information about the Digitalmars-d mailing list