Pair literal for D language

Mason McGill via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 27 15:01:19 PDT 2014


I like DIP54 and I think the work on fixing tuples is awesome, 
but I have 1 nit-picky question: why is it called 
"TemplateArgumentList" when it's not always used as template 
arguments?

   void func(string, string) { }

   TypeTuple!(string, string) var;
   var[0] = "I'm nobody's ";
   var[1] = "template argument!";
   f(var);

Why not a name that emphasizes the entity's semantics, like 
"StaticList"/"ExpandingList"/"StaticTuple"/"ExpandingTuple"?


More information about the Digitalmars-d mailing list