Re: GOTO operator
| From: | Andrey Hristov | Date: | Tue, 03 Aug 2004 07:44:14 +0000 |
| Subject: | Re: GOTO operator | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11858@lists.php.net to get a copy of this message | ||
Quoting DvDmanDT <dvdmandt@telia.com>:
> > And my point still remains. There are an awful lot of PHP programmers out
> > there who really don't need an extra way to write for(), or while(), or
> > do..while(). It makes maintenance work harder when you have a mixture of
> > styles in there to cope with.
> >
> > I don't for a moment believe that Sara intended her GOTO implementation to
> > be used as a simple alternative construct in any old situation that comes
> > along, and that's where much of the point of this whole discussion lies.
> > Because you can bet your ass that many coders out there will do just that
> > thing.
>
> My point was to say it's powerful, as powerful as all those, not that it
> could replace them.. I would still use while(), do..while() and for() the
> times they are intended for.. I'm sure most of the people would.. There are
> however situations where goto is what makes sense.. Even if it can be done
> with do..while() or try..catch(), goto is just the real logic way to do it..
> Instead of not adding it, add warnings to the manual..
>
Strangely why the acronym "RTFM" exists ? :-)
andrey