4 ms·
> Have you ever been bitten by unsafe code? Yeah. Most often in FFI code (when the invariants are much harder to uphold). Rarely when writing unsafe abstracti
by Manishearth 10y ago
> Have you ever been bitten by unsafe code?
Yeah. Most often in FFI code (when the invariants are much harder to uphold). Rarely when writing unsafe abstractions. The few times I remember this happening with abstractions is due to really old code that broke in a compiler upgrade (pre-1.0).
> IMHO any metrics would be gamed and prioritized above actually quality.
Yeah, there have been discussions in the past about a "safe code" badge for crates and stuff like this, and the conclusion is that it might discourage people from using unsafe code where they actually should be.