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

Is this not `Result<Whatever, List<Error>>`? There's nothing enforcing that the error side needs to be the value-based equivalent of a single instance of an Exception class.

The important part is not to expose a "String -> Whatever" function publicly.



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

Search: