Stanislav Malyshev wrote: > Exceptions are structured way of handling code flow - you can not get to > random points of code with exception, you can get either to enclosing > catch or stop the program entirely. Unlike exceptions, goto allows to > jump to a random point of code. I don't know what do you mean by "limited" > - I see that the consensus among the goto proponents is to not impose any > limits on the place you could jump to - because, of course, once you > strated to jump around you always can find a use for jumping to any place, > if you are creative enough - and I do not doubt creativity of PHP people.
The idea is the goto will not be truly unlimited, you will not be able to jump in and out of function/method (and maybe even foreach) scope. But within the same scope you'll be able to move both forward and backward. Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php