Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40659 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38386 invoked from network); 24 Sep 2008 07:44:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Sep 2008 07:44:38 -0000 X-Host-Fingerprint: 62.147.235.43 maison.lupusmic.org Received: from [62.147.235.43] ([62.147.235.43:22128] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/85-00346-3EFE9D84 for ; Wed, 24 Sep 2008 03:44:37 -0400 Message-ID: To: internals@lists.php.net Date: Wed, 24 Sep 2008 09:43:35 +0200 User-Agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 References: <59.6C.35835.FB3F8D84@pb1.pair.com> <20080924065741.50a30448.kevin@phpro.org> <002701c91dd1$89dad480$3ffc1f3e@foxbox> <3A.A3.33890.DD789D84@pb1.pair.com> <9b3df6a50809240006k7679b849k3075bbd4db7bf02b@mail.gmail.com> In-Reply-To: <9b3df6a50809240006k7679b849k3075bbd4db7bf02b@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Posted-By: 62.147.235.43 Subject: Re: [PHP-DEV] true namespaces, yet another point of view From: mickael+php@lupusmic.org (Lupus Michaelis) Arvids Godjuks a écrit : > Of course that isn't a good example, because Zend framework always has a > class prefix "Zend", but they surely can use a namespace and remove that > Zend in front of classes. They are a lot of case where you want to use this syntax. The most common is when you have a depth namespace like a russian puppy : namespace org::w3::xhtml::strict as x ; The other reason is to use it for testing purposes, when you develop a new engine, that share the same API with the previous : // namespace org::w3::xml as xml ; namespace com::lupusmic::xml as xml ; But maybe it isn't a good use... :D Namespaces can be a usefull tool, but if wouldn't, don't use. And if it becomes mandatory, fork your own PHP version :D -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org