Rant after trying Rust a bit

Ziad Hatahet via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 23 13:55:18 PDT 2015


On Wed, Jul 22, 2015 at 4:25 PM, jmh530 via Digitalmars-d <
digitalmars-d at puremagic.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).


Rust has ditched the ~ and @ syntax for pointers for a long time now. For
unique pointers they use Box<T>, and for managed pointers it is either
Rc<T>, Arc<T>, or Gc<T>, depending on the desired behavior. The last one is
currently still under development I believe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150723/2defaccc/attachment.html>


More information about the Digitalmars-d mailing list