Re:Rust is a hard way to make a web API
by Arnavion on Saturday January 16, 2021 @04:13PM
(#25805558)
You misunderstand. I have nothing against the standard libraries of a language using unsafe code. However you are the one that said:
>but for general-purpose stuff like the web you never need anything unsafe.
... and:
>> it's pretty common in both of these languages for there to be C libraries involved somewhere in the stack.
>Negative. [...] All their core components are 100% managed code.
... so I posted a correction.
> unsafe code called from Dictionary.Remove
For creating, and checking for, empty reference.
Rust standard library uses unsafe way more. That design has consequences, e.g. check this https://medium.com/@shnatsel/how-rusts-standard-library-was-...
It's somewhat harder to screw up when you can rely on VM guarantees, and don't need that level of trust in the libraries you consume.