4 ms·
> Go is the first language where I can actually access the original socket permission error because it was actually passed up. Now try to trace them as easily
by camus2 9y ago
> Go is the first language where I can actually access the original socket permission error because it was actually passed up.
Now try to trace them as easily as exceptions. Oh wait, you can't unless you wrap Go errors into some struct from a library that isn't in the std lib therefore everybody has different systems to trace errors /s
i'll take exceptions over this (which go has, panic/defer). error is just a convention, it's not an error system.
- KirinDave 9y agoI'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.