Making unsafe Rust a little safer
blog.colinbreck.com
blog.colinbreck.com
I'm no rust evangelist but I don't understand this point. In what scenario would you rather have an out of bounds read go through and let Jesus take the wheel rather than print a stacktrace and have a clean-ish exit?
> The program terminates, which may be highly undesirable, or even unacceptable, creating other safety issues if the software is vital for operating critical infrastructure, but the run-time checks ensure the program will never execute unsafe code that would result in undefined behaviour.
That said, this whole sentence here just feels kind of out of place, like it was written just for the sake of having something to say about a panic.
Safety critical systems need to fail safely, because they will fail. Detecting unexpected execution should halt the system and revert it back to a known state (e.g. cycle power).
I think this is it:
https://rust-lang.github.io/rust-clippy/master/index.html#un...