On Mon, Oct 01, 2001 at 10:12:52AM +0200, Andi Gutmans wrote:

> I am OK with such an ambiguity error. What about the rest of the people?
 
I think it will be okay.  Anyone using (non-newbie) features like
namespaces and ternary operations should understand the
ramifications of stressing the syntax.

That's not to say that PHP should become complicated, but if
ternary operations are the only place this ambiguity shows its
face, we can deal.
 
> >Also, I think that namespaces should allow no spaces between namespace names
> >and other namespace names or variable/class/constant names. e.g.:
> >
> >FOO : BAR : BARBARA
> 
> I have also thought of this. I think I will need to scan for namespaces in 
> the scanner. The right way to put it is the parser but then we'd allow 
> spaces which I really don't want to do.
> 
> >is illegal as a fully-qualified constant name, so the following would
> >eliminate ambiguity as well:
> >
> >$test ? FOO : BAR:BARBARA;
> 
> In the case of space being illegal you are right about this.
 
I like this whole "spaces" thing.

-- 
Jon Parise ([EMAIL PROTECTED])  .  Information Technology (2001)
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to