|
|
|
|
|
by Cthulhu_
575 days ago
|
|
This is down to developer style and agreements though; Go has typed errors and a set of utilities to match them [0]. Not using those is a choice, just like how in Java you can just `catch (Exception e)` after calling a dozen methods that might each throw a different exception. [0] https://pkg.go.dev/errors |
|
So... I'd say that this is a fumble in the design of Go.