Re:Why I’m dropping Rust
by steveklabnik on Sunday September 11, 2016 @03:33PM
(#12475174)
C++ is not memory safe, and neither is uniq_ptr. Use after move on one causes a segfault. (Actually IIRC it's UB, but it usually manifests as a segfault)
[ Parent
| on HN ]
It looks like clang-tidy just committed a check for this case: https://reviews.llvm.org/D23353
Re:Why I’m dropping Rust
by steveklabnik on Sunday September 11, 2016 @04:52PM
(#12475669)
Not exactly this case. From the link:
> No warnings are emitted for objects of type ``std::unique_ptr`` and
> ``std::shared_ptr``, as they have defined move behavior.
Regardless, I am happy to see more static checking for C++, and am following the GSL/Core Guidelines closely. It's important work.