placeholder

Outcomes, Mistakes, and the Nuance of Error Handling

Outcomes, Mistakes, and the Nuance of Error Handling January 16, 2022 11 minutes After my last post, I decided it was time to finish up several projects, no matter how experimental, and roll a proper release for them. One such project I’m finally wrapping up development of, is a Rust library. It.....

Click to view the original at izzys.casa

Hasnain says:

Really great read on some of the trade offs that come with various error handling approaches. The examples and libraries discussed are Rust specific but the lessons generalize well.

“I would argue that, in most languages even outside of Rust, a majority of our time is spent logging an error and simply returning to a given caller. In reality, a warning or some retry operation is meritted; the nuance of what really is an error is something that needs to be taken into consideration when designing these critical paths that must handle mistakes and failures.”

Posted on 2022-01-17T08:00:34+0000