3 ms·
I'll take Either where I can guarantee I know what I'm dealing with and that it's dealt with rather than the honors system Go offers.
by KirinDave 9y ago
I'll take Either where I can guarantee I know what I'm dealing with and that it's dealt with rather than the honors system Go offers.
- concede_pluto 9y agoGo is basically using multiple return values as a half baked Either type, only you're on your own if you want to pass it over a channel or store it anywhere.
- KirinDave 9y agoSadly go can't even half bake a sum type suitable for this work without generics.