Last call for AliasSeq

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 29 20:33:37 PDT 2015


On 07/28/2015 04:13 PM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Tuesday, 28 July 2015 at 12:34:13 UTC, Daniel N wrote:
>> On Tuesday, 28 July 2015 at 12:10:54 UTC, Marc Schütz wrote:
>>> "X.Y.Z. didn't understand the difference between Tuple and TypeTuple".
>>> => Maybe the "Tuple" part of the name is the problem. We should
>>> consider a different name.
>>>
>>
>> In which case it makes more sense to change std/typecons:Tuple, since
>> it's the odd one out when comparing with .tupleof and TypeTuple.
>
> Yes, tuples are supposed to be:
> - immutable

Not necessarily.
You can think about having e.g. a tuple of mutable lvalues, so this 
distinction is useless in the context of D.

> - subject to structural typing only
>
> So typecons.Tuple is not a tuple… Which probably just adds to the
> confusion...
>

Yup.



More information about the Digitalmars-d mailing list