When will map/dict initialization be ready?

John Xu 728308756 at qq.com
Thu Apr 6 01:53:31 UTC 2023


I saw on doc:
     https://dlang.org/spec/hash-map.html#static_initialization,
that map/dict/associative array, still can't be initialized like 
below:

       NOTE: Not yet implemented.

       immutable long[string] aa = [
         "foo": 5,
         "bar": 10,
         "baz": 2000
       ];

I'm wondering when this is be ready? Python can write this way 
long time ago.


More information about the Digitalmars-d mailing list