top | item 30696727

(no title)

uryga | 4 years 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.

discuss

order

kevinmgranger|4 years ago

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.