I’m writing a small command line tool at the moment, and I find myself using
unwrap in a couple of places:
Optionvalues that are guaranteed to contain somethings (they’ve already been validated by
- On return values from functions that will almost certainly not fail (e.g. will only fail if current_year >= 262143)
What’s the conventional way of handling these cases? It seems a waste to try and elegantly handle and report these errors that will never happen. Does it make sense to use
unwrap here instead?