3 ms·
The difference being that all c++ code is 'unsafe' in the rust sense, whereas a typical rust program will have only a small portion of unsafe code (or none), ma
by imron 9y ago
The difference being that all c++ code is 'unsafe' in the rust sense, whereas a typical rust program will have only a small portion of unsafe code (or none), making it easier to fully validate - hence 'doesn't really have this problem'.
- pjmlp 9y agoI agree, but it depends how seriously unsafe blocks get reviewed. Because I can assure you, unsafe blocks in enterprise Rust will be reviewed as much as C and C++ code currently are in most Big Corps™. We do have such problems with native libraries killing Java and .NET processes, with unsafe being the FFI boundary.