Wait, what? What is AliasSeq?
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 8 17:11:16 PDT 2015
On 7/8/2015 2:00 AM, Jonathan M Davis wrote:
> On Tuesday, 7 July 2015 at 22:22:02 UTC, Walter Bright wrote:
>> On 7/7/2015 2:20 PM, David Nadlinger wrote:
>>> On Tuesday, 7 July 2015 at 21:15:40 UTC, Andrei Alexandrescu wrote:
>>>> So I thought we were supposed to replace bad names with good names. Template
>>>> arguments are indexable, so "sequence" doesn't quite apply.
>>>
>>> Apparently Walter was opposed to using List, as that would somehow imply "linked
>>> list".
>>
>> I opposed it because lists are not indexable, and tuples are.
>
> Linked lists are not indexable, but the term list doesn't necessarily imply that
> it's a linked list.
It does to me, and in common programming usage "list" is often said instead of
"linked list".
> As for Seq, it's kind of ugly, but if understand that it's Sequence, I think
> that that fits well enough. Personally, I'd prefer List over Seq, but if you're
> vetoing List, then I don't know what else we're going to go with. _Nothing_ fits
> perfectly. TypeTuple/AliasSeq/Whatever is just too unique and too much of a
> hodgepodge for any name to really well.
Which is why I simply picked the name Arguments. The s suffix means plural, and
doesn't give any preconceived notion about what kind of collection it is. It's a
convention I've been using in the dmd source for some time now, and have found
it to be natural and pleasing.
More information about the Digitalmars-d
mailing list