Asssociative Array by Key-Value-Pair
    Meta via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Dec 15 13:32:23 PST 2014
    
    
  
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
    
    
More information about the Digitalmars-d-learn
mailing list