Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31590 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30323 invoked by uid 1010); 15 Aug 2007 18:39:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30308 invoked from network); 15 Aug 2007 18:39:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2007 18:39:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=ralph@smashlabs.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ralph@smashlabs.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain smashlabs.com from 67.15.58.61 cause and error) X-PHP-List-Original-Sender: ralph@smashlabs.com X-Host-Fingerprint: 67.15.58.61 openrce.org Received: from [67.15.58.61] ([67.15.58.61:57160] helo=SMASHER.SMASHlabs.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/20-28294-06843C64 for ; Wed, 15 Aug 2007 14:39:29 -0400 Received: (qmail 29137 invoked from network); 15 Aug 2007 13:32:45 -0500 Received: from localhost (HELO ?127.0.0.1?) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 15 Aug 2007 13:32:45 -0500 Message-ID: <46C346D1.7090203@smashlabs.com> Date: Wed, 15 Aug 2007 13:32:49 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: Stanislav Malyshev CC: Guilherme Blanco , PHP Internals References: <46BE14B1.5050209@zend.com> <101178402.20070814174515@marcus-boerger.de> <6094eac50708150709o6d1fe42bx3449af2bc1b7f54d@mail.gmail.com> <46C337F4.5080001@zend.com> <46C340D1.3070700@zend.com> In-Reply-To: <46C340D1.3070700@zend.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages] From: ralph@smashlabs.com (Ralph Schindler) Stanislav Malyshev wrote: >> If PHP team release in the news: >> >> PHP has namespace support! >> OR >> PHP has package support! PHP has namespaced package support. Which, is what the implementation is. > Or worked with different ones enough to understand that "packages" is > used for a zillion of different things, while namespace is quite > well-defined concept. I quoted the wikipedia a number of times, let me > quote it once again: Wikipedia also define the term MVC. But alas, that is a conceptual definition, not blueprints for implementation. The fact of the matter is that when it comes down to implementation, some elements of what we have might fit into both the realm of namespaces and packages. But the general taste this will leave in peoples mouthes is package, even if it is a Grapple. C# is the most intuitive implementation of namespace I have seen to date. I vote +1 on moving in that direction. Unfortunately, the current implementation doesn't have braces; this (consequently) adds a FILE restriction into the "namespace" feature. The moment that FILE restriction was entered into the game, it started to taste, look, and feel more like a package paradigm, than a pure namespace paradigm. Also, considering that limitation placed into namespace, we can be sure that the most common usage senario for said feature will look like building library "packages". Point in case is how the ZF has used a pesudo-namespace-ing class name to accomplish the very same thing. Ideally, we call this packages now, and implement the C# style namespaces in the future ;) But I am certain thats a statement/concept worth flaming. +1 on package, it makes the most sense regardless of the marketing draw of "namespace" support. -ralph