Ilia Alshanetsky wrote:
Stanislav Malyshev wrote:
IA>>Ok, so you propose that people start using exceptions for OO and
IA>>procedural code just because they are "there"? One major problem with
No, I don't propose that. I am just concerned once you put goto there
it would be abused in all kinds of "creative" ways and would make a
mess out of the code.
Any feature can and as experience proves it to be the case, will be
abused. Plenty of people make horrid abuse of exceptions, but we still
went ahead an added them anyway since they have many practical and
useful applications. Same is true for goto, some people will surely
abuse it, but for many others it will be a very handy tool.
and the key point here:
the kinds of horrid things you can do with goto will not be harder to
debug, than what we already have .. especially compared to some some
possible exceptions abuses.
regards,
Lukas
PS: never mind my goto recursion example .. in an attempt to make it
short i forgot to add labels .. so interpolate if you will or ignore :-)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php