Re: Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

From: Date: Mon, 01 Oct 2001 13:57:12 +0000
Subject: Re: Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-66917@lists.php.net to get a copy of this message
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 (jon@csh.rit.edu) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member

« previous php.dev (#66917) next »