Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31538 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42270 invoked by uid 1010); 11 Aug 2007 19:57:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42255 invoked from network); 11 Aug 2007 19:57:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2007 19:57:49 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:6847] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/60-39310-CB41EB64 for ; Sat, 11 Aug 2007 15:57:48 -0400 Received: from [127.0.0.1] ([192.168.17.7]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 11 Aug 2007 12:57:45 -0700 Message-ID: <46BE14B1.5050209@zend.com> Date: Sat, 11 Aug 2007 12:57:37 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: 'PHP Internals' Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Aug 2007 19:57:45.0711 (UTC) FILETIME=[E2B1BFF0:01C7DC51] Subject: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages] From: stas@zend.com (Stanislav Malyshev) -------- Original Message -------- Subject: Re: [PHP-DEV] Renaming namespaces to packages Date: Fri, 10 Aug 2007 10:03:25 -0700 From: Stanislav Malyshev Organization: Zend Technologies To: Keryx Web References: <001401c7db45$feeb0530$6e02a8c0@thinkpad> <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