Re: solving the namespace conflict issues between function/staticmethod class constant/ns constant
| From: | Jochem Maas | Date: | Mon, 22 Sep 2008 19:15:52 +0000 |
| Subject: | Re: solving the namespace conflict issues between function/staticmethod class constant/ns constant | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40606@lists.php.net to get a copy of this message | ||
hi Dmirty,
you didn't answer the question (and AFAIC the readme doesn't either).I really don't see a reason to change namespace syntax into a less intuitive way.I don't think the current implementation is intuitive, the ambiguity issues, (and possibly the name resolution order, although I can't grok what the current state of that is) are rather large WTFs.Your speed degradation argument isn't truth. The ambiguity problem exists, but it is just an ability to use php in a wrong way. Just don't create conflicting names.which begs the question, what was namespaces created for? (that's a serious question because your statement has me truly confused)
README.namespaces was committed into PHP_5_3 about year ago.a 14 month old document which doesn't cover the status quo, and begins with a disingenuous statement about the problem namespaces try to solve (is that really all there is to namespaces? to avoid typing long class names? most people have auto-complete features in their editor to take care of that 'problem' and it really doesn't explain why constants or functions exist in namespaces at all.)