Re:Using unwrap() in Rust is okay
by throwawaymaths on Monday August 08, 2022 @05:25PM
(#32391226)
It's kind of the opposite. If you have a network error, often you shouldn't bother to try handling it, the best strategy is often to zero out your state, give up and try again later.
By contrast, you should give up parsing a JSON if it's a config file read on startup but probably not if it's user input.
By contrast, you should give up parsing a JSON if it's a config file read on startup but probably not if it's user input.