4 ms·
I think checked exceptions are just ahead of their time. They make sense when you statically check your code against contracts, which is why they showed up agai
by wcoenen 15y ago
I think checked exceptions are just ahead of their time. They make sense when you statically check your code against contracts, which is why they showed up again in the spec# research project. http://en.wikipedia.org/wiki/Spec_Sharp http://en.wikipedia.org/wiki/Spec_Sharp
- nl 15y agoOptional 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.