Re: PHP 5.1

From: Date: Mon, 06 Jun 2005 08:22:08 +0000
Subject: Re: PHP 5.1
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-16408@lists.php.net to get a copy of this message
On Mon, 6 Jun 2005, Ondrej Ivanič wrote: > Jani Taskinen wrote: > >> And the much needed goto for the next one (5.2/5.5/6.0 or whatever it > >> will be) ? > > I've found a lot of cases where this would have been nice to have > > and simplified the code too.. > > > > So +1 from me. (wasn't there a patch for this already somewhere?) > > When I move from functional to OO or generic programing I don't need use > 'goto' statement anymore. > > I think, better (cleaner) way is extend 'break' and 'continue' to accept > string as label name in local scope. (like java :)). > > Implement 'goto' with possibility to jump anywhere is a step backwards... It's exactly the same as "break <label>"... goto can only jump in the same scope with a label. So I don't see the difference. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#16408) next »