Phil nailed it - it's a cost vs. benefit thing. Java is somewhat unique in 
having checked exceptions in the first place, and presuming we can take the 
entire java ecosystem as more than mere anecdotal evidence in regards to how 
well it works out in practice - the experiment failed. The costs do not 
outweigh the benefits. Nevertheless, we're stuck with it, so from a 
pragmatic standpoint: Use @SneakyThrows or some other sneaky throws 
mechanism, be very careful when adding checked exceptions to your own stuff, 
and campaign for a way to opt out more easily in JDK8 or 9.



On Thursday, March 24, 2011 12:59:05 AM UTC+1, phil swenson wrote:
>
> The argument boils down to to costs vs benefits.
>
> All the checked exception haters think the costs greatly out-weigh the 
> benefits.
>
>

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com.
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to