3 ms·
> Look at the source code of data structures implemented by Rust standard library. You will find unsafe code everywhere. This is survivorship bias: one of the
by steveklabnik 2y ago
> Look at the source code of data structures implemented by Rust standard library. You will find unsafe code everywhere.
This is survivorship bias: one of the criteria back in the day for “should this go in the standard library” was “is it a data structure that uses a lot of unsafe?” because it was understood that the folks in the project would understand unsafe Rust better than your average Rust programmer. These days, that isn’t as true anymore, but back then, things were different.