On 10/29/07, Dave Smith <[EMAIL PROTECTED]> wrote: > I like Java's checked exceptions. To me, it's what makes them useful. > C++ exceptions are basically useless because the compiler does not force > them to be caught. Why did Sun decide to ditch them in Java 7?
Probably because there usually really isn't anything useful you can _do_ in such cases. If my wireless goes down mid-transfer, there's not a whole lot the app can do besides put up a "sorry, you're hosed" dialog. So having the compiler make me add "throws YouAreHosedException" is just more boilerplate. (So the real question is, when the rest of the language and culture is so in love with inflicting boilerplate on developers, why take this example out?) -Jonathan /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
