Quoting Stanislav Malyshev <[EMAIL PROTECTED]>:
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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php