News for hackers. Stuff that matters.
Re:Pointers in Rust: a guide by fhd2 on Friday October 18, 2013 @10:31AM (#6571556)
These guidelines pretty much apply to C++, although pointers in Rust are more akin to smart pointers than raw pointers, and there are indeed a bunch of use cases for those. Sticking to values and references works pretty well most of the time though.

But pointers in Rust seem pretty well thought out and more sophisticated than what's possible in C++. I'm particularly excited about the compiler error when a borrowed pointer goes out of scope.

Re:Pointers in Rust: a guide by steveklabnik on Friday October 18, 2013 @10:41AM (#6571618)
Yup! If you use C++, this wiki page can help: https://github.com/mozilla/rust/wiki/Rust-for-CXX-programmer...

Basically, imagine boost's pointer types being in the language, so that the compiler can reason about them.

Re:Pointers in Rust: a guide by fhd2 on Friday October 18, 2013 @10:43AM (#6571623)
I love it. I'm staring to look for reasons to try Rust in a project, luckily they're piling up :)
Re:Pointers in Rust: a guide by steveklabnik on Friday October 18, 2013 @10:49AM (#6571659)
Supposedly 1.0 is "around the corner," so maybe you'll find a good reason by then...
Re:Pointers in Rust: a guide by pjmlp on Friday October 18, 2013 @11:54AM (#6572049)
> These guidelines pretty much apply to C++

Yep, C suffers from pointer abuse and with it, infects any language that uses C compatibility as language subset.