Re:Baby Steps: Slowly Porting Musl to Rust
by rkangel on Monday June 13, 2016 @08:16AM
(#11893098)
There's a difference between handling all possible error cases (however unlikely) and handling impossible cases.
The moment you hit the latter case you can no longer make any assumptions about the state of the device and an abort/assert is an entirely appropriate thing to do.
The moment you hit the latter case you can no longer make any assumptions about the state of the device and an abort/assert is an entirely appropriate thing to do.