Associative arrays

Chris Piker chris at hoopjump.com
Tue May 18 08:08:10 UTC 2021


On Tuesday, 18 May 2021 at 07:50:06 UTC, Ola Fosheim Grostad 
wrote:
> I hope it stays unimplemented. AAs should be replaced by a 
> library solution and AA literals should work with custom AAs. 
> The special casing is not good for metaprogramming.

I'm new to D and don't come from a hard-core C++ background.  On 
naive first take, the fact that D had a construct resembling 
python dictionaries made D more attractive. In fact, it was AAs 
that finally tipped me in favor of trying D.

Can you tell me more about why AAs are an undesirable language 
feature?



More information about the Digitalmars-d mailing list