[Issue 10009] foreach_reverse and AA.byKey/byValue
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Sep 25 21:49:58 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=10009
--- Comment #23 from hsteoh at quickfur.ath.cx ---
Built-in AA's was one of the things that initially drew me to D. Though,
admittedly, I would've been OK with a library type that sported convenient
syntax.
But as they say, hindsight is always 20/20. In the early days, D simply wasn't
powerful enough for a library type to be able to emulate what built-in AA's do.
Today, of course, the tables have turned, and a library type may in fact be
superior to the built-in type if given proper compiler support. (One thing that
comes to mind is using templates and compile-time introspection to optimize AA
operations, that today have to rely on passing typeinfo's around and thereby
being handicapped when it comes to dealing with things like @disabled ctors,
non-trivial opAssign's, and so on. A library type would have no such problem.)
--
More information about the Digitalmars-d-bugs
mailing list