2 ms·
> How is that any improvement on any other language? In Rust, outside of the std::vec module, unless you type "unsafe" there is no way to corrupt a vector that
by pcwalton 11y ago
> How is that any improvement on any other language?
In Rust, outside of the std::vec module, unless you type "unsafe" there is no way to corrupt a vector that you have. In C++, that's quite easy: undefined behavior can corrupt anything, private fields or not.