On Thu, Sep 23, 2010 at 3:21 PM, Reinier Zwitserloot <[email protected]>wrote:
> Because there's use in having the compiler be your pair programmer. > It's nice when your compiler tells you: Hey, uh, did you think about > FileNotFoundException? > > I'm just asking for the ability to say: Yes, I did, thanks for > reminding me - without having to jump through bizarre hoops like you > have to do today. > > That's what checked exceptions ought to be: This condition is usually > both expectable and handleable, so please remind my API user. > But.... what you are proposing is a way to promote any checked exception to a non-checked exception. Why bother when you can just make them all non-checked? You could simply rename "sneakyThrows" to "throws" and just have all declared and non-caught exceptions be warnings. Done. :) -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
