Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: