hashed array?
bearophile
bearophileHUGS at lycos.com
Mon Nov 12 07:21:59 PST 2012
monarch_dodra:
> Well, I don't see why AA would be built-in, but not set.
It's generally wise to minimize the amount of stuff you put in
the D front end or in the D runtime.
> so if we take the time to implement AA, why not hashed sets?
>
> The advantage of having it built-in would mean more convenient
> declaration syntax:
> int[string] vs AA!(string, int) // string => int
> [string] vs Set!(string) //set of string
The situation is not fully symmetrical: associative arrays fully
defined in Phobos have bad literals.
Bye,
bearophile
More information about the Digitalmars-d
mailing list