Re: namespaces ambiguity
| From: | (Stig Sæther Bakken) | Date: | Mon, 01 Oct 2001 10:39:53 +0000 |
| Subject: | Re: namespaces ambiguity | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66904@lists.php.net to get a copy of this message | ||
[Andi Gutmans <andi@zend.com>]
> At 09:35 PM 9/30/2001 +0200, Stig Sæther Bakken wrote:
> >[Andi Gutmans <andi@zend.com>]
> > > Hey,
> > >
> > > I just started playing around with the parser to support the
> > > namespaces syntax Stig laid out in his RFC. I think I've thought of an
> > > ambiguity (with constants) which makes me wonder how feasible the
> > > proposed syntax is.
> > > Consider the following expression:
> > > $test?FOO:BAR:BARBARA
> > >
> > > Would this mean that the person meant $test?(FOO):(BAR:BARBARA) or
> > > $test?(FOO:BAR):BARBARA?
> >
> >Okay, is there another character we can use? Doesn't look that way.
> >Maybe we need to use two characters then? Since both "::" and "->"
> >are taken, "//" is the best suggestion I can come up with.
>
> // can't be used because of comments.
D-oh! :-)
- Stig
--
Stig Sæther Bakken <ssb@alltheweb.com>
Fast Search & Transfer ASA, Trondheim, Norway