[Fwd: Re: [PHP-DEV] Renaming namespaces to packages]
| From: | Stanislav Malyshev | Date: | Sat, 11 Aug 2007 19:57:37 +0000 |
| Subject: | [Fwd: Re: [PHP-DEV] Renaming namespaces to packages] | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-31538@lists.php.net to get a copy of this message | ||
-------- Original Message --------
Subject: Re: [PHP-DEV] Renaming namespaces to packages
Date: Fri, 10 Aug 2007 10:03:25 -0700
From: Stanislav Malyshev <stas@zend.com>
Organization: Zend Technologies
To: Keryx Web <webmaster@keryx.se>
References: <001401c7db45$feeb0530$6e02a8c0@thinkpad> <alpine.DEB.0.98.0708101411550.8736@kossu.ez.no> <46BC927B.8070402@zend.com> <46BC9778.5080406@keryx.se>
FWIW. I teach PHP and for most students I believe their other implementation of namespaces will soon be the one in ECMAScript 4/JavaScript 2.Thanks for mentioning it! From what I can see, their idea of namespaces is radically different from what C++ is doing and equally different from what packages are anywhere. They basically introduce an orthogonal namespacing plane (or we can call it attribute set that can be applied to any name) which can be operated independently of the main namespace. It's interesting and can be a powerful tool but I imaging how mind-boggling would be the code seriously using that capability. And they, btw, are not ashamed of calling it namespaces just because it's not c++ ;)
From what I gather it looks a lot like this one for PHP, and packages in JS 2 is something more different. http://developer.mozilla.org/presentations/xtech2006/javascript/The packages there, however, seem very much like Java ones with addition of braces. P.S. I see you didn't send that to the list - will it be OK to forward it and my response there? I think it's interesting contribution to the discussion. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com