4 ms·
Checked exceptions probably would have been fine if there were only one kind of checked exception. Most methods would declare it and they'd all be compatible.
by skybrian 10y ago
Checked exceptions probably would have been fine if there were only one kind of checked exception. Most methods would declare it and they'd all be compatible.
This would be similar to how Go functions always return the same error type, but without the boilerplate.
- bshanks 10y agoBut wouldn't that kind of defeat the point? Sort of like how having a type system with only one type wouldn't be very helpful.