As others have commented, this isn’t about the use of unsafe. It’s about the unsafe usage of unsafe. Actix uses unsafe in lots of places. So does the Rust standard library. No one is complaining about those instances of unsafe because people haven’t found a problem with them. People did complain about some specific uses of unsafe in Actix because they were actually unsafe.
The keyword could probably be renamed to “potentially-unsafe” or something so that when we talk about it, this is clearer to people outside the language/community when it comes up? But, then we’d need 12 extra characters just to use a perfectly reasonable language feature, so...”unsafe” it is.
3
u/TwoBitWizard Jan 18 '20
As others have commented, this isn’t about the use of unsafe. It’s about the unsafe usage of unsafe. Actix uses unsafe in lots of places. So does the Rust standard library. No one is complaining about those instances of unsafe because people haven’t found a problem with them. People did complain about some specific uses of unsafe in Actix because they were actually unsafe.
The keyword could probably be renamed to “potentially-unsafe” or something so that when we talk about it, this is clearer to people outside the language/community when it comes up? But, then we’d need 12 extra characters just to use a perfectly reasonable language feature, so...”unsafe” it is.