Hacker News new | ask | show | jobs
by sbergot 673 days ago
A simple example is the Result<T> which could have either Ok(T value) or Error(string message). In order to get the value you need to switch over both cases, forcing you to handle the error case locally.