Which is bad why? Even assuming you are correct.
As much as I loved JMP when programming in assembly,
I consider goto's to be an abomination in a well
written OO program (I don't dispute the usefulness
of the Java goto bytecode, I say it has no place
in OOP).
"exceptions used for flow control are glorified gotos",
which is what I meant in case that wasn't clear.
"Exceptions (in Java and C++) are like non-local goto statements."
http://c2.com/cgi/wiki?DontUseExceptionsForFlowControl
Joshua Bloch takes the exact same stance.
So does Bruce Eeckel.
There are entire frameworks -- and very succesful ones --
like Spring, that consider that forcing users to do
goto-catch programming is a very bad practice.
Spring doesn't unnecessarily forces you to goto-catch
checked exceptions.
I think I started admitting that catching checked
exception was basically GOTO programming upon
reading this article (that took me a while to
find back):
"When I find myself using exceptions to outline
"alternative paths of of execution...
"I need to stop and admit that I'm coding with GOTOs.
From:
http://www.dehora.net/journal/2003/08/checked_exception_still_considered_pointless.html
Re-reading this years after, it's really good
to see that the author laments that he's not
expecting things to change anytime soon, yet
meanwhile frameworks like Spring proved that
there was another way... And in my opinion
the author was right on spot, so were the
Spring guys, so is anyone who says that
using exception for flow control is GOTO
programming.
But that is just an opinion, your entitled
to yours.
To paraphrase a sentence of yours, I suggest
you "try to read" articles on the subject.
(Instead of asking "have you read this?" to
someone here in c.l.j.p. you asked "have you
tried to read this?").
So if you want to *discuss* (instead of posting
your usual, very helpful, one line answers) that
subject, I suggest you "try to read" [sic] articles
on that subject.
Because I surely did and I post more than one line
answers.
Google is your friend and "exceptions" "flow control"
"goto" should be good starting keywords.
But of course you seem so emotionally invested in
making single line quotes and single line answers
showing how smart you are that I don't expect to
hear from you:
"it's an interesting point of view"
Yet for many very smart people it is.