[PHP] Re: GOTO command. Doest it exist?
Non sequitur. C is a structured languaged and has goto. Why shouldn't PHP have goto? Sometimes is pointless bundle together HTML and PHP and keep it in a if statement or a function, like this if(TRUE){ ? SHOW THIS ? }else{ ? SHOW THAT ? } Whence such construction as below keep the codes clean as: if(TRUE) goto OUTPUT1 else goto OUTPUT2 OUTPUT1: ? SHOW THIS ? OUTPUT2 ? SHOW THAT ? BTW, if PHP has not goto commands some warning should be put with the do{}while commentaries where it makes one to believe that there _is_ goto commands, as it happened to me. Best regards, Carlos Cirello - Original Message - From: Rodolfo Gonzalez To: Carlos U. Cirello Filho Sent: Tuesday, June 11, 2002 3:33 PM Subject: Re: [PHP] GOTO command. Doest it exist? On Tue, 11 Jun 2002, Carlos U. Cirello Filho wrote: Yes... and it seems that there ain't any GOTO command. Then, there isn't. I guess because it's a structured language, derived mostly from C. If you need goto for some reason, you need to do your work in ASP (VBscript). But you have if ... then, switch and other structures, you shouldn't need goto anyway. Regards, Rodolfo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: GOTO command. Doest it exist?
[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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: GOTO command. Doest it exist?
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 [EMAIL PROTECTED] wrote in message 000e01c21183$ab49e590$8102a8c0@niigziuo4ohhdt">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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: GOTO command. Doest it exist?
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 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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 [EMAIL PROTECTED] wrote in message 000e01c21183$ab49e590$8102a8c0@niigziuo4ohhdt">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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php