Hacker News new | ask | show | jobs
by johnisgood 392 days ago
I do not think a code full of unwrap() (which I have seen often) is a nice thing to look at.
1 comments

That's not what the article is saying, despite what the title implies. He is saying that while unwrap should be generally avoided, there are a few genuine use cases for it.

I follow his advise on error handling, since that's what I found convenient as well. Rust error handling is hard to get started with. But you need to learn it only once before it becomes a second nature. Most of my projects contain only a handful of unwraps.