Re:Bugs that the Rust compiler catches for you
by Georgelemental on Friday May 06, 2022 @12:34PM
(#31287122)
IO errors are generally handled by returning a `Result` type, that contains the details of the problem on error. You wouldn't use `panic` for IO errors. `panic`s are meant for dealing with broken invariants/assertion failures because of a bug in the program.
[ Parent
| on HN ]
There are no comments on this comment yet.