News for hackers. Stuff that matters.
Re:ZZ is a modern formally provable dialect of C by jcranmer on Wednesday February 05, 2020 @10:45AM (#22247740)
A panic in Rust nicely captures the category of errors which the programmer asserts should be impossible, which generally cannot be recovered well from. A panic is kind of catchable, but it only works in the sense of killing only part of the process rather than the entire process (like abort does).

If errors are expected, then you should Result instead of a panic. If people are using panics instead of Result for these kinds of errors, then the library is wrong. I'm curious what examples you have where this is happening.

There are no comments on this comment yet.