5 ms·
Go 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.
by concede_pluto 9y ago
Go 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.