Stanislav Malyshev wrote:
LS>>the safe guard is that you only have:
LS>># static labels to jump to
That's not a safeguard, since you still can jump to any label.
it is combined with the fact that you cannot jump out of the scope ..
should make it really easy to do a simple search for the label.
LS>>now tell me that exceptions dont allow for much more drastic jumps in your
LS>>code that will not be able to easily be detected (in most cases with a
LS>>simple search in your current file)
No, they do not. You can not exception to abritrary point of the code. You
but it can be a "relatively" arbitrary point in the sense that the catch
can be endless lines of code away ... effectively making a search a very
tedious process.
your arguments are acedemic. in the real world the goto label will be
relatively easily found, whereas finding the catch block that will in
the end handle the "emulated goto" can be much further away. simply
because a single scope will usually span much fewer lines compared to
the number of lines of code that an exception can bubble out into. so
the potential to shoot yourself in your shoot is much higher. let alone
that by now the "goto is bad professor" must have died from a hard
attack by suggesting that exceptions should be used to emulate goto's
for non error cases.
anyways .. i think both sides have explained their POV fairly indepth by
now. doesnt seem like either side is seeing the others argument. pity,
so it goes.
regards,
Lukas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php