Re: Re: GOTO command. Doest it exist?

From: Date: Tue, 11 Jun 2002 20:39:33 +0000
Subject: Re: Re: GOTO command. Doest it exist?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-101616@lists.php.net to get a copy of this message
Well, IMO, the only languages that really need goto's are low-level ones like assembly and C. goto's are more trouble than they're worth when you get into structured or OO programming. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Carlos U. Cirello Filho" <carloscirello@ieg.com.br> wrote in message news:20020611203326.49823.qmail@pb1.pair.com... > OK, > > Anyway goto's are bad and wrong things... And one shouldn't use it. I am > wrong in trying to solve such problem using it. But I was really amazed that > PHP did not have goto.... > > Kind Regards, > > > Carlos Cirello > > > "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message > news:000e01c21183$ab49e590$8102a8c0@niigziuo4ohhdt... > > [snip] > > Subject: Re: [PHP] GOTO command. Doest it exist? > > [/snip] > > > > No, and you don't need it. The reason? Ask yourself, "what is the use of a > > GOTO?". Usually GOTO indicates a function of some sort, which you could > > easily replicate with a function() or switch() if you need to send your > > application in a different direction depending upon a set of > circumstances. > > > > HTH! > > > > Jay > > > > > >

« previous php.general (#101616) next »