Re: solving the namespace conflict issues betweenfunction/staticmethod class constant/ns constant
| From: | Arvids Godjuks | Date: | Mon, 29 Sep 2008 06:19:42 +0000 |
| Subject: | Re: solving the namespace conflict issues betweenfunction/staticmethod class constant/ns constant | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40754@lists.php.net to get a copy of this message | ||
Maybe just use . as namespace separator.
MyNameSpace.SomeClass::_getInstance()->SomeDBClass->Query();
That will eliminate all resolution problems, it isn't used for anything than
string concatenation, and it's one symbol. It's 100% better than \ and I
think it would be better than ::: or :::: and so on.
A point against \ is that it has special meaning in every programming
language as escape character, so it is 100% bad to use it.