Re:“Rust is safe” is not some kind of absolute guarantee of ...
by geraneum on Sunday October 02, 2022 @03:41PM
(#33059437)
> Rust is arguably less safe in that aspect than C, due to the general Rust practice of panicking upon unexpected conditions
For context, this is OP's sentence that I responded to in particular. Ensuring safety [1] is way less trivial than looking for a call to "panic" in the state machine. You can remove the calls to "panic" and this alone does not make your program safer than the equivalent C code. It just makes it more kernel friendly.
For context, this is OP's sentence that I responded to in particular. Ensuring safety [1] is way less trivial than looking for a call to "panic" in the state machine. You can remove the calls to "panic" and this alone does not make your program safer than the equivalent C code. It just makes it more kernel friendly.
[1] not only memory safety