Re: [PHP] Re: if syntax

2002-07-12 Thread Chris Earle
> > >PHP will tell you you have a syntax error on the very last > > line of your > > >file, and you have no option but to go back and laboriously > > hand match all > > >of your braces -- and with each ellipsis representing maybe > > tens (or even > > >hundreds!) > > > > Don't be ridiculous. Any

Re: [PHP] Re: if syntax

2002-07-12 Thread Chris Earle
"Mike Ford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > -Original Message- > > From: Chris Earle [mailto:[EMAIL PROTECTED]] > > Sent: 11 July 2002 18:28 > > To: [EMAIL PROTECTED] > > Subject:

RE: [PHP] Re: if syntax

2002-07-12 Thread Ford, Mike [LSS]
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 23:38 > [] > > I apologize profusely to the fans of the "alternative syntax" > who are still > using it. > > I personally find the endxxx; to be more of an eyesore, but that's a > religious a

RE: [PHP] Re: if syntax

2002-07-12 Thread Ford, Mike [LSS]
> -Original Message- > From: Chris Earle [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 18:28 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: if syntax > > > > when it would be just as easy, and more functional, to > write this (even > > saves a

Re: [PHP] Re: if syntax

2002-07-11 Thread Richard Lynch
>> The "alternate syntax" with the colons is passe -- I think >> you'd have to dig >> pretty deep to find a script old enough that uses it for >> anything other than >> demonstration purposes. (Rasmus?) > >What utter tosh! *All* my scripts use the "alternative" syntax, as I think >braces are a

Re: [PHP] Re: if syntax

2002-07-11 Thread Chris Earle
> when it would be just as easy, and more functional, to write this (even > saves a few characters, too!): > >if (x): > while (y): > ... > endwhile; > ... >endif; You're adding characters... "{" + "}" opposed to ":" + "endif;" Don't go for the fuzzy Math from

RE: [PHP] Re: if syntax

2002-07-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 10:54 > > The "alternate syntax" with the colons is passe -- I think > you'd have to dig > pretty deep to find a script old enough that uses it for > anything other than > demonstration purposes.