3 ms·
> 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
by geraneum 4y ago
> 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.
[1] not only memory safety