On 19/11/13 20:51, Gaetan wrote:
In the french presentation for rust 0.8 [1], the author gives the analogy with C++ semantics
- ~ is a bit like unique_ptr
- @ is an enhanced shared_ptr<T>
- borrowed pointer works like C++ reference

and I think it was very helpful to better understand them. I don't know if it is true or now, but this comparison helps a lot understanding the concepts.You can present them like this, and after, add more precision, and difference with the C++ counter parts.

A tutorial to make would be "Rust for C++ programmer" :)

Something like that already exists: https://github.com/mozilla/rust/wiki/Rust-for-CXX-programmers


Huon
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to