Persistent list

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 14 07:45:54 PST 2015


On 11/13/2015 06:41 PM, Timon Gehr wrote:
> On 11/14/2015 12:10 AM, Andrei Alexandrescu wrote:
>>
>> * Lines 6: By construction the list doesn't work with mutable objects.
>
> =(

I've decided persistent lists with mutable elements just too weird to 
endorse. Lisp allows them but every time it mentions that it very 
strongly advises against it.

Other container semantics are better, I think, for mutable elements. 
Let's leave persistent lists have their nice value semantics.


Andrei


More information about the Digitalmars-d mailing list