# Namespaces Question

- Thread: https://externals.io/message/18699
- Original archive: https://news-web.php.net/php.internals/18699
- Started by Kevin Newman on 2005-09-07T21:19:43+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #18699 — Kevin Newman — 2005-09-07T21:19:43+00:00

URL: https://externals.io/message/18699#18699

Hello,

I'm new here, but I have some ideas that I would like to share about 
implementing namespaces, but I'd like to know what the current state and 
issues of namespaces are before I share them.

I've read that there is a possible performance consideration involving 
two hash table lookups when using the scoping operator (str::replace 
etc.). I've also read that there were some language design issues to 
consider. What are the other issues?

I have done quite a bit of searching on google, zend.com and other 
places to try to find the answer to why namespaces were removed from php 
5, but was unable to find anything concrete. Some kind of a summary 
would be most appreciated. :-)

Thank you,

Kevin N.

---

## #18700 — Jessie Hernandez — 2005-09-07T21:36:17+00:00

URL: https://externals.io/message/18699#18700 · In reply to: #18699

Hi Kevin,

I posted a patch very recently (1-2 months ago) that implements namespace
support. You can search this list and download the patch if you want to
check it out (I can also repost if necessary). Just to make sure you find
the latest one, it's in a "Beta 2" thread. It was also posted in a reply to
Andi in a thread entitled "Allow functions in namespaces?".

As to whether the patch will be accepted or not, I don't know. It seems that
many are busy with the upcoming 5.1 release, that's why only few have
checked the patch and offered their opinions. Feel free to try out the patch
and let me know what you think. Thanks.


Regards,

Jessie


"Kevin Newman" <CaptainN@unFocus.com> wrote in message
news:431F596F.9050604@unFocus.com...
> Hello,
>
> I'm new here, but I have some ideas that I would like to share about
> implementing namespaces, but I'd like to know what the current state and
> issues of namespaces are before I share them.
>
> I've read that there is a possible performance consideration involving
> two hash table lookups when using the scoping operator (str::replace
> etc.). I've also read that there were some language design issues to
> consider. What are the other issues?
>
> I have done quite a bit of searching on google, zend.com and other
> places to try to find the answer to why namespaces were removed from php
> 5, but was unable to find anything concrete. Some kind of a summary
> would be most appreciated. :-)
>
> Thank you,
>
> Kevin N.
