Hacker News new | ask | show | jobs
by r3un1 1406 days ago
There is! `expect()`
1 comments

I think this is a good answer. People should use `expect` for this "I'm sure this is fine" case, with descriptive text about why it's fine.
Or you can invert it and use `.expect("TODO add error handling")`