5 ms·
I do not think a code full of unwrap() (which I have seen often) is a nice thing to look at.
by johnisgood 1y ago
I do not think a code full of unwrap() (which I have seen often) is a nice thing to look at.
- goku12 1y agoThat'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.