Rant after trying Rust a bit

Tobias Müller via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 23 13:03:31 PDT 2015


"jmh530" <john.michael.hall at gmail.com> wrote: 
> I feel like it's hard to separate borrowing from Rust's variety of
> pointers (& is borrowed pointer, ~ is for unique pointer, @ is for managed pointer).

That's actually very outdated information. Two of the four pointer types
(&,@,~ and *) were ditched in favor of library solutions.

*T: Raw pointers are still the same
&T: is now called reference, not borrowed pointer
~T: Is now Box<T>
@T: Is now Rc<T> (and possibly Gc<T> although a GC was never implemented)
 Tobi


More information about the Digitalmars-d mailing list