A Discussion of Tuple Syntax

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Aug 19 13:43:19 PDT 2013


On 8/19/13 11:54 AM, Meta wrote:
> Realistically, Andrei, how amenable are you and Walter to adding tuple
> literal/packing&unpacking/pattern matching syntax to D, be it Tuple,
> TypeTuple, whatever? I don't recall either of you commenting much in the
> two other discussion threads linked. We can discuss this all day, but it
> what are the actual chances of you agreeing to such a large change in
> the language?

We'd be fools to reject a valuable addition to the language. That being 
said, there's no broad agreement on what's needed and what's to be 
added. Furthermore, most discussions are disproportionally focused on 
syntax (as opposed to semantics) and fall for syntactic cutesies instead 
of simple and robust library support. That in my experience is a bad 
omen. Now _that_ being said, if and when a gem comes about, we hope to 
have the insight to see it.


Andrei



More information about the Digitalmars-d mailing list