Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sanderjd
on Aug 8, 2022
|
parent
|
context
|
favorite
| on:
Using unwrap() in Rust is okay
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
on Aug 9, 2022
[–]
Or you can invert it and use `.expect("TODO add error handling")`
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: