3 ms·
One of the reasons the standard library has a lot of unsafe is that the standard library is small, but one of the criteria for being in the standard library is
by steveklabnik 8y ago
One of the reasons the standard library has a lot of unsafe is that the standard library is small, but one of the criteria for being in the standard library is “uses a lot of unsafe.” We’d rather these things get massive visibility.
In all my years with Rust, the only unsafe I’ve needed in any of my applications is when doing FFI, and my toy OS. YMMV.
- sanxiyn 8y agoOn the other hand, Rust certainly could use a lot less unsafe in the standard library than it currently does. It just doesn't want to.