Wait, what? What is AliasSeq?

Brian Rogoff via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 9 12:45:20 PDT 2015


On Thursday, 9 July 2015 at 19:10:39 UTC, Jonathan M Davis wrote:
> On Thursday, 9 July 2015 at 18:45:56 UTC, Marc Schütz wrote:
>> Interestingly, it goes on by saying:
>>
>>> An n-tuple is defined inductively using the construction
>>> of an ordered pair.
>>
>> Although not stated explicitly, this implies (a kind of) auto 
>> expanding!
>> => Fits more than perfectly :-P
>
> No one who has ever seriously used tuples in any programming 
> language I've ever heard of would expect tuples to auto expand.

You're right. And after all of the discussion, I like the name 
AliasSeq more.
The fact that it sometimes elicits a 'WTF' reaction is perfect; 
it's a D thing (or a 'not normally exposed to the programmer 
thing') so you need to look up what it does. Using Tuple, List, 
or Array in the name is unhelpful, as those names are used a lot 
already.





More information about the Digitalmars-d mailing list