We need an example of how to initialize associative arrays in the documentation at http://dlang.org/spec/hash-map.html I look this up fairly frequently and it's just not readily searchable. Eventually I'll try to find time to fix this myself, but, it may be a while.
(In reply to Mark Isaacson from comment #0) > We need an example of how to initialize associative arrays in the > documentation at http://dlang.org/spec/hash-map.html > > I look this up fairly frequently and it's just not readily searchable. > Eventually I'll try to find time to fix this myself, but, it may be a while. Since there already a paragraph named "Runtime Initialization of Immutable AAs" I assume you speak about the 'AssocArrayLiteral' construct. Currently there's only a description in the grammar: http://dlang.org/spec/grammar.html#KeyValuePairs
Yep, we're on the same page. Personally I find it difficult to decipher the grammar. I'm sure that page is a barrier to new users. So yeah, the request would be to get an example of that, a little code block, somewhere on http://dlang.org/spec/hash-map.html
https://github.com/D-Programming-Language/dlang.org/pull/1180
Commit pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/6eed593864fc4530539851d7e44138c42f04a7e6 Merge pull request #1180 from markisaa/issue_15471 Issue 15471: Associative Arrays: add example of static initialization
Commit pushed to stable at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/6eed593864fc4530539851d7e44138c42f04a7e6 Merge pull request #1180 from markisaa/issue_15471