dlang.org redesign -- a better code sample for landing page
via Digitalmars-d
digitalmars-d at puremagic.com
Wed Mar 11 06:09:19 PDT 2015
On Friday, 23 January 2015 at 13:34:36 UTC, aldanor wrote:
> Does anyone find the example on the landing page particularly
> exciting? (aside from it using an rdmd shebang) Anything that
> makes you, as a programmer, think -- huh, that's interesting,
> I'll need to check that out.
Further, 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.
More information about the Digitalmars-d
mailing list