Re: [PHP] Re: goto label

2003-12-10 Thread Robert Cummings
On Wed, 2003-12-10 at 07:10, Bogdan Stancescu wrote: > > May I point you to the last few lines in my message you're replying to, > quoted at the top of this message for your convenience. I will highlight > the key words in there for you here, so it's easier to follow: "I wanted > to reinforce t

Re: [PHP] Re: goto label

2003-12-10 Thread Bogdan Stancescu
Robert Cummings wrote: On Tue, 2003-12-09 at 08:14, Bogdan Stancescu wrote: Sorry if my message sounded melodramatic or something, I remembered the frustration feeling so strongly from your message that I wanted to reinforce the other people's messages with a personal "testimonial" if you wish.

Re: [PHP] Re: goto label

2003-12-09 Thread Robert Cummings
On Tue, 2003-12-09 at 17:45, Justin Patrin wrote: > > While goto may be useful and even elegant for experienced programmers > (although I see no reason to use it myself with well structured > programs...there's always break), its inclusion in a language causes > some programmers (newbies and tho

Re: [PHP] Re: goto label

2003-12-09 Thread Justin Patrin
Robert Cummings wrote: On Tue, 2003-12-09 at 08:14, Bogdan Stancescu wrote: Robert, I know your grief, been there, I know how it feels. I started my childhood with BASIC, which was /the/ "GOTO" programming language, learned Turbo Pascal when I was a teenager, and continued to use GOTO's (Pasca

Re: [PHP] Re: goto label

2003-12-09 Thread Robert Cummings
On Tue, 2003-12-09 at 08:14, Bogdan Stancescu wrote: > > Robert, I know your grief, been there, I know how it feels. I started my > childhood with BASIC, which was /the/ "GOTO" programming language, > learned Turbo Pascal when I was a teenager, and continued to use GOTO's > (Pascal discourages

Re: [PHP] Re: goto label

2003-12-09 Thread John Nichel
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 hav

Re: [PHP] Re: goto label

2003-12-09 Thread Bogdan Stancescu
Justin Patrin wrote: Robert Cummings wrote: Goto is a very broken way of coding. Goto 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 wo

Re: [PHP] Re: goto label

2003-12-08 Thread Viraj Kalinga Abayarathna
if you are porting an old programme, try using "SWITCH", some time back i successfully ported a lengthy code in to PHP which had many "GOTO"s . Viraj note: also, i had to use some parameter passing mechanism. Justin Patrin wrote: Nitin wrote: Hi all, I was wondering, if there's any way to a

Re: [PHP] Re: goto label

2003-12-08 Thread Robert Cummings
On Tue, 2003-12-09 at 00:51, Justin Patrin wrote: > Robert Cummings wrote: > > > > Goto is a very broken way of coding. Goto 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 PH

Re: [PHP] Re: goto label

2003-12-08 Thread Justin Patrin
Robert Cummings wrote: 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: [PHP] Re: goto label

2003-12-08 Thread Robert Cummings
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 got

[PHP] Re: goto label

2003-12-08 Thread Justin Patrin
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