logoalt Hacker News

mh2266yesterday at 6:08 PM0 repliesview on HN

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.