Hacker News new | ask | show | jobs
by geon 226 days ago
There are cases when you need to store the result of a function regardless of if it succeeded or threw. Like if you need to tell the user that an error occurred. In those situations, a `Result` can make a lot of sense.

Arguably, `Result` can also help when it is important that error are dealt with and not just allowed to bubble up.