Hacker News new | ask | show | jobs
by UK-Al05 2171 days ago
You could write sum type that handles multiple cases.

Value Error ValueAndError