Hacker News new | ask | show | jobs
by zer8k 1041 days ago
I didn't look too much at this but are they offering an alternative to the (IMO ugly) error checking pattern Go enforces? It's interesting to me shoehorning this into Go in particular. Go is notoriously stringent on how you write code.
1 comments

They have Either, so kind of. It looks serviceable, if a little messy without language support for safely destructuring its cases.
Safe destructuring could be achieved with Church encoding.