Persistent list

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 16 11:37:06 PST 2015


On 11/16/2015 01:55 PM, Steven Schveighoffer wrote:
> On 11/16/15 1:37 PM, Andrei Alexandrescu wrote:
>> On 11/16/2015 12:51 PM, Steven Schveighoffer wrote:
>>>      List tail() const
>>
>> I'd like tail to be qualifier-idempotent, i.e. return const for const
>> and non-const for non-const. -- Andrei
>
> Why? const(int)[] isn't const, why should List!(const(int)) be?

I'm keeping an eye toward other containers and also more general use. 
It's a common need. -- Andrei



More information about the Digitalmars-d mailing list