Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
r3un1
3y ago
0 comments
Save
Share
There is! `expect()`
0 comments
2 comments · 1 top-level
top
newest
oldest
sanderjd
3y ago
· 1 in thread
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.
tomjakubowski
3y ago
Or you can invert it and use `.expect("TODO add error handling")`
j
/
k
navigate · click thread line to collapse