3 ms·
Go's error handling is exactly the equivalent of only having checked exceptions. I've gone the other way, personally, the last few years: I prefer languages tha
by pkulak 8y ago
Go's error handling is exactly the equivalent of only having checked exceptions. I've gone the other way, personally, the last few years: I prefer languages that only have unchecked exceptions.
- erik_seaberg 8y agoIf you call methods that throw IOException, you can just declare IOException, you don't have to litter every statement of every method with catch clauses that hurt readability. Edit: where this breaks down in Java is trying to implement interfaces that don't declare the exceptions you're then forced to smuggle out.