Automatic Inference for Both Key and Value Types of an Associative Array

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 14 11:07:56 PDT 2014


Meta:

> Isn't that also the case for the auto*, const[], immutable[$], 
> etc. syntax? Conceptually it feels the same to me as Kenji's 
> enhancement; I don't know enough about the compiler to talk 
> about it technically.

One difference between Kenji's enhancement and the AA type 
inference is that arr[$] length inference for arrays is useful in 
many situations and it helps avoid some bugs and make the code 
more DRY. So it's a different degree of usefulness.

Bye,
bearophile


More information about the Digitalmars-d mailing list