4 ms·
> I thought the purpose of Rust was for safety but the keyword unsafe is sprinkled liberally throughout this library. This is such a widespread misunderstandin
by School-Cotton 2y ago
> I thought the purpose of Rust was for safety but the keyword unsafe is sprinkled liberally throughout this library.
This is such a widespread misunderstanding… one of the points of rust (there are many other advantages that have nothing to do with safety, but let’s ignore those for now) is that you can build safe interfaces, possibly on top of unsafe code. It’s not that all code is magically safe all the time.