On Tue, 2003-12-09 at 00:32, Justin Patrin wrote:
> Nitin wrote:
> 
> > Hi all,
> > 
> > I was wondering, if there's any way to achieve 'goto "label":' using PHP
> > 
> > Thanx for ur time
> > 
> > Nitin
> 
> goto is a very old and broken way of coding. If you ever find yourself 
> in need of a goto, you should re-evaluate how you're doing things. If 
> you're having trouble finding out how to do it better, just ask here. :-)

Goto <line number> is a very broken way of coding. Goto <label> is a
very useful and structured way of coding especially when creating fast
FSMs for parsing. I was a little disappointed a few months ago when I
found that PHP didn't support  the goto label syntax since it would have
provided the most elegant solution.

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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to