Show AAs in all their virtues

via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 23 08:25:54 PST 2015


I believe we should show off D in all its virtue

at http://dlang.org/hash-map.html

by addition to

     int* p = ("hello" in aa);
     if (p !is null) {}

also include the even compacter

     if (auto p = "hello" in aa) {}

along with

     if (const p = "hello" in aa) {}

in the non-mutating case.

Destroy!


More information about the Digitalmars-d mailing list