Stanislav Malyshev wrote:

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.

so I guess the only additional danger I can see from goto is someone jumping from goto A to goto B and then back to goto A. since we have static labels this should be just as obvious to determine as any infinite recursion.

aside from that the proposed goto implementation are much less likely to allow you to shoot you in the foot compared to our exception implementation since it only works within the current scope.

it also spares developers from having to create an object instance just for the sake of being able to use exceptions.

regards,
Lukas

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to