News for hackers. Stuff that matters.
Re:Rust Weird Expressions by steveklabnik on Friday May 14, 2021 @12:02PM (#27155731)
You can compare them, but the comparison won't show that they're equal :p

C++'s smart pointers have direct analogues in Rust, though there are some differences. (unique_ptr<T> and Box<T>, shared_ptr<T> and Rc<T>/Arc<T>)

The borrow checker is something else completely. The closest analogue in C++ is the https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines, which offer some similar kinds of checks to Rust, but don't attempt to go nearly as far as Rust does.

There are no comments on this comment yet.