News for hackers. Stuff that matters.
Re:A Guide to Porting C/C++ to Rust by catnaroek on Sunday January 29, 2017 @10:03AM (#13514385)
How do you prevent an object from being used after you `std::move()` it?

---

Reply to moomin:

The type system's intrinsic expressiveness limits the kinds of verification tricks you can “teach” it.

Re:A Guide to Porting C/C++ to Rust by moomin on Sunday January 29, 2017 @10:17AM (#13514442)
You teach the compiler to treat it as an error. The point being that this isn't practically available in C++ and is mandatory in Rust.