Wait, what? What is AliasSeq?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 14 07:00:34 PDT 2015


On 7/13/15 7:38 PM, Tofu Ninja wrote:
> On Monday, 13 July 2015 at 23:01:35 UTC, Dmitry Olshansky wrote:
>> Popular != the right thing.
>> List in CS at large is generally speaking not indexable nor defines
>> such operations. So there may be a lot of people who don't care for
>> what a list is, but that doesn't make list a synonym for sequence.
>
> Who decreed lists can not be indexable, seriously this seems really odd
> to me.

It's just a matter of language ethos. Perl calls all arrays "lists", and 
if a new array-like feature comes about it that language, it would make 
sense to continue using that terminology. In D indexable and sliceable 
arrays are called "arrays" or "slices". That's a given. So adding 
something that is indexable and sliceable but is called a "list" is 
surprising. -- Andrei


More information about the Digitalmars-d mailing list