Re: PHP 5.1
| From: | Stanislav Malyshev | Date: | Mon, 06 Jun 2005 14:35:59 +0000 |
| Subject: | Re: PHP 5.1 | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16443@lists.php.net to get a copy of this message | ||
LS>>> No, they do not. You can not exception to abritrary point of the code. You
LS>>
LS>>but it can be a "relatively" arbitrary point in the sense that the catch can
LS>>be endless lines of code away ... effectively making a search a very tedious
LS>>process.
Ever tried to use IDE which handles blocks and does indentation? ;)
LS>>your arguments are acedemic. in the real world the goto label will be
LS>>relatively easily found, whereas finding the catch block that will in the
I'm not concerning about you missing your label. I'm concerned about you
jumping to places where you shouldn't be by the engine logic and by the
code logic.
LS>>is bad professor" must have died from a hard attack by suggesting that
LS>>exceptions should be used to emulate goto's for non error cases.
Nobody said exceptions should be used to emulate goto. I said goto has too
high abuse potential to be a good language feature.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115