Re: Re: namespace separator ideas
| From: | Oliver Grätz | Date: | Sun, 27 Nov 2005 01:31:03 +0000 |
| Subject: | Re: Re: namespace separator ideas | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20618@lists.php.net to get a copy of this message | ||
David Zülke schrieb:
> Foo:>bar:>Baz::getTest()->foo();
> Foo<-bar<-Baz::getTest()->foo();
> Foo:::bar:::Baz::getTest()->foo();
OK, for completeness:
Foo%%bar%%Baz::getTest()->foo();
Yes, it is blocky, as is the :: for class scopes.
But it's very clear to see where the namespaces are and where the
regular stuff is. Its blocky nature even comes as a plus here.
My second candidate would be
Foo:>bar:>Baz::getTest()->foo();
because ::: really seems to similar to the class scope operator (risk of
mixing the two) an "<-" seems to be ruled out by parser limitations (the
"-" is a unary prefix operator for anything on its right side).
OLLi