DIP77 - Fix unsafe RC pass by 'ref'

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 11 02:52:09 PDT 2015


On Saturday, 11 April 2015 at 08:35:18 UTC, Ola Fosheim Grøstad 
wrote:
> On Friday, 10 April 2015 at 15:44:32 UTC, Andrei Alexandrescu 
> wrote:
>> We hope to do better than Rust. -- Andrei
>
> Hope does not cut it.
>
> A design that breaks down even on a linked list (e.g. you have 
> to turn to ref-counted pointers everywhere) and that makes 
> findByRef(container,node) break should not have made it to a 
> DIP in the first place.

a bidirectional linked list cannot be implemented in safe rust 
afaik


More information about the Digitalmars-d mailing list