On Fri, 2004-07-30 at 17:11, Shaun Thomas wrote:
> Hartmut Holzgraefe wrote:
> 
> > The JAVA approach is even superior to PHPs "break n;"
> > where n has to be an integer and you have to be very
> > carefull to not wrap another loop around the break
> > but within the loop supposed to be broken
> 
> Very true.  Labeled breaks would be the "goto" that people seem to want 
> here, and it would avoid the whole problem of, "Do I need a break 2 
> here, or a break 3?"  Maybe what we really need is an extension of the 
> break statement to include labels instead of adding goto?

"break label" would only satisfy some of the arguments. Others such as
the need for goto to implement an FSM wouldn't be satisfied. So the
addition of goto would satisfy everyone except the "protect newbies from
themselves" camp since this is pretty much the only argument against
goto that has an iota of validity beyond personal preference. But then
as we've seen PHP already contains plenty of opportunity for newbies to
shoot themselves in the foot. Personally I don't see the difference
between two holes in ones foot versus one.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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

Reply via email to