Wait, what? What is AliasSeq?

Dmitry Olshansky via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 8 01:41:00 PDT 2015


On 08-Jul-2015 02:29, Andrei Alexandrescu wrote:
> On 7/7/15 5:24 PM, Timon Gehr wrote:
>> On 07/07/2015 11:16 PM, Andrei Alexandrescu wrote:
>>> Template arguments are indexable, so "sequence" doesn't quite apply.
>>
>> https://en.wikipedia.org/wiki/Sequence#Indexing
>
> Hmm, fair enough. Sequential as opposed to associative.
> https://en.wikipedia.org/wiki/Sequence_container_(C%2B%2B) also comes to
> mind.
>
> Then, at least let's use the whole darn word. Doesn't seem like the
> short form is helping a lot here.
>

I believe Seq is quite fitting as the venerable TypeTuple  was used 
frequently enough to benefit from shorter form IMHO.

Scala's Seq[T] is a sequential container (pretty much anything 
array-like), so there is precedent.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list