25 ms·
Optional checked exceptions have some benefits. Java got them the wrong way around - unchecked should have been the default, with checked available when you ne
by nl 15y ago
Optional checked exceptions have some benefits.
Java got them the wrong way around - unchecked should have been the default, with checked available when you need them.
Because Java does them the other way around, you either get code bloat from the large numbers of exceptions you are catching and handling subtly differently or you have a generic catch(Exception e){..} block. Neither are ideal.
- famousactress 15y agoexactly right. I'm always surprised more people don't land here when this debate comes up.