Asssociative Array by Key-Value-Pair

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Dec 15 13:58:53 PST 2014


On Mon, 15 Dec 2014 21:32:23 +0000
Meta via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:

> On Monday, 15 December 2014 at 18:55:13 UTC, bearophile wrote:
> >> Now this yields tuples:
> >> assert(aa.byPair!Tuple.array == aa.pairs!Tuple);
> >
> > But I'd really like tuples as built-ins for D -.- This is a 
> > work-around that cements the ugly Phobos tuples in the 
> > language... -.-
> >
> > Bye,
> > bearophile
> 
> Kenji has had a pull for full built-in Tuple support sitting in 
> Github for years now 
> (https://github.com/D-Programming-Language/dmd/pull/341). The 
> syntax obviously won't work as it is, but that aside there's very 
> little stopping built-in tuples in D.
> 
> Don't forget, he also made a DIP about it as well: 
> http://forum.dlang.org/thread/mailman.372.1364547485.4724.digitalmars-d@puremagic.com

wow, thank you. i missed that PR and i really like it. will try to add
it to my patchset. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141215/212b6d64/attachment.sig>


More information about the Digitalmars-d-learn mailing list