Re: PHP 5.1
| From: | Andrey Hristov | Date: | Mon, 06 Jun 2005 12:22:16 +0000 |
| Subject: | Re: PHP 5.1 | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16423@lists.php.net to get a copy of this message | ||
Quoting Stanislav Malyshev <stas@zend.com>:
IA>>Most common solution people choose to emulate exceptions often ends up being IA>>recursive functions, those as well know in many instances result in crashes. Eh? Only case I know when recursion may result in crash is if it's endless recursion (or recursion for all effective purposes can be considered endless - like one 100M functions deep). Do you know more cases? IA>>Most PHP (internal or external) code does not use exceptions, just saying IA>>"use exceptions" may work in Java, but certainly not in PHP. Well, 100% of existing PHP code doesn't use goto either, so your argument is not working.But some code is using goto emulation by having do{}while (0); workaround with break(x);, which is uglier than goto with a label and more error prone (every break has to be reconsidered if a new nested block is added. Andrey