2 ms·
If an unsafe wrapper can be mis-used, it's not actually safe, and so the bug still lies inside the wrapper.
by steveklabnik 6y ago
If an unsafe wrapper can be mis-used, it's not actually safe, and so the bug still lies inside the wrapper.
- CyberRabbi 6y agoThat’s true, so now I see where the issue of unavoidable unsafe usage comes in. It’s not always possible to create a safe and general wrapper for all driver functionality, though in special cases maybe. I agree now that using Rust still offers something even if it can’t be guaranteed that the code is 100%. Thanks for explaining.