Greg Beaver wrote:
Dmitry Stogov wrote:
Hi,
The solution (2) - "goto only" is the winner.
So in case of no serious objections, I'll commit the "goto.diff" patch in 24
hour.
The last question:
What do you thin about Andi's solution about using "jump" instead of "goto"?
It may make sense, because it is not a full analog of C's goto statement. It
is a limited "goto". It allows jump back and forward, but not INTO loops and
switch statements.
+1 for jump
Greg
Even though I like "jump", people will most likely be searching for
"goto" (PHP manual) or "goto PHP" (Google) when they're trying to find
out if PHP has such a functionality. So, maybe it's better to just call
it "goto".
PHP will give some kind of warning if it is used incorrectly, right?
They'll learn soon enough.
Bart
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php