3 ms·
>> but you need unsafe code for anything complicated. > … what? Somewhere deep down in your dependencies, maybe, but for most things you really don’t need unsa
by hyperpape 10y ago
>> but you need unsafe code for anything complicated.
> … what? Somewhere deep down in your dependencies, maybe, but for most things you really don’t need unsafe code.
If anyone has an account or feels like creating one, that line really should be changed to "unsafe code can't always be avoided" or "fundamental types like Vector are implemented with unsafe" or something similar.
- all2well 10y ago>fundamental types like Vector are implemented with unsafe That's kind of the point, though: Vec provides a safe interface over behavior that would otherwise be unsafe. You could as easily complain that C is fundamentally implemented in machine code without any type safety.
- hyperpape 10y agoI agree that it's not a huge problem. But it does communicate accurately where unsafe appears, unlike the existing text.