3 ms·
> 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 lack
by uryga 5y 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.
- kevinmgranger 5y agoFolks are saying that sum types might eventually come to go after some experimenting with generics. It'll be interesting to see where it goes.