3 ms·
Using `unwrap` is not something that can come back to bite you in a long term (other than API design wise). Replacing it is dead easy, as the compiler helps you
by sinistersnare 6y ago
Using `unwrap` is not something that can come back to bite you in a long term (other than API design wise). Replacing it is dead easy, as the compiler helps you. Also, you can replace it with a call to `expect` to give a relevant message too.
- est31 6y agoThat's why I said it's way better. It's usage is still not considered good practice for most scenarios.