3 ms·
Seems silly to force you to declare it when the compiler and static analysis could easily find it in the method body automatically. Exceptions aren't supposed
by smt88 5y ago
Seems silly to force you to declare it when the compiler and static analysis could easily find it in the method body automatically.
Exceptions aren't supposed to be valid output, so declaring them in a method signature is just a messy way of creating typed errors. I prefer the Go way (a Maybe object) better.