Re:Writing comments about pointer ownership
by Animats on Sunday August 23, 2015 @04:04AM
(#10104997)
The big difference is that in Rust, if you make an borrow error and try to use something you moved away, it's caught at compile time. In C++11, you dereference zero and crash, because the reference moved from was zeroed out.
[ Parent
| on HN ]
There are no comments on this comment yet.