Tuple/TypeTuple etc.

Dicebot public at dicebot.lv
Fri Aug 16 13:30:11 PDT 2013


On Friday, 16 August 2013 at 20:22:49 UTC, H. S. Teoh wrote:
> ...

Term "tuple" comes from math and means "ordered set of elements". 
In that sense anonymous struct with unnamed fields _is_ a tuple 
and I thing std.typecons.Tuple is the place where naming is fine.

It is re-using the term for compile-time entity of the language 
that causes confusion. While it matches the mathematical 
definition of "tuple" too, its practical meaning for language is 
much more than that and naming should express it.


More information about the Digitalmars-d mailing list