Hacker News new | ask | show | jobs
by uryga 1553 days ago
> But where they really shine, like in the mapping example, isn't possible in Go.

oh yeah, definitely! Go's version of EaV with multiple returns is pretty lackluster compared to a proper Result type. afaict it's kind of "the worst of both worlds" -- all of the boilerplate of plumbing errors manually w/ none of the benefits.

1 comments

Folks are saying that sum types might eventually come to go after some experimenting with generics. It'll be interesting to see where it goes.