Re: MEGA-patch: namespaces are R.I.P.
| From: | Andi Gutmans | Date: | Tue, 03 Jun 2003 04:09:31 +0000 |
| Subject: | Re: MEGA-patch: namespaces are R.I.P. | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2130@lists.php.net to get a copy of this message | ||
At 01:00 AM 6/3/2003 +0200, Marcus Börger wrote:
At 20:29 02.06.2003, Andi Gutmans wrote:A possible problem are variables. And two hash lookups sucks too but that's bearable.I strongly disagree. Please re-read the original thread to see our arguments against yours.There were no arguments just some sentences (from Zeev iirc) stating that it can't work and that i am expecting something else. Since i don't see problems with my idea of import that might be the case with the import we had.
I read it and I don't think it's good. I'd expect imported functions to at least take precedence or cause an error if a function with the same name is defined in current symbol table. Your solution always puts them second. You might not agree but you can see it's not as simple as you claim.Some of them are: - Problem with import.See above and please reread my original mail because i did some technical explanation on this topic there already.
When you create a variable how do you know where to create it?- Problem with variables.All solveable. And the problems are with import only (afaik) so we could drop support for importing variables later when adding import.
If you have created so many enterprise apps with Rose then you should be aware that it works with C++ and that's what I used it with. C++ without namespaces. Rose was around (and I've been using it) *long* before Java was around. Rational does definitely not come from a Java perspective on this one.- Enterprise applications including UML tools have been written without namespaces (I have taken part in quite a few such projects including Rational (IBM) Rose).Whatever they had in mind. Rational comes from a Java perspective where you have packages as a grouping mechanism. PHP now has neither.
Again I disagree. AndiI am confident that one can write enterprise applications without namespaces. You're making a mountain out of a mole hill.Perhaps :-) I wanted to stress out what we lack and make clear that all problems could be solved.