Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31586 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8710 invoked by uid 1010); 15 Aug 2007 17:29:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8694 invoked from network); 15 Aug 2007 17:29:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2007 17:29:29 -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:1651] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/41-33321-8F733C64 for ; Wed, 15 Aug 2007 13:29:29 -0400 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 15 Aug 2007 10:29:26 -0700 Message-ID: <46C337F4.5080001@zend.com> Date: Wed, 15 Aug 2007 10:29:24 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Olivier Hill CC: Marc Gear , PHP Internals References: <46BE14B1.5050209@zend.com> <101178402.20070814174515@marcus-boerger.de> <6094eac50708150709o6d1fe42bx3449af2bc1b7f54d@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Aug 2007 17:29:26.0115 (UTC) FILETIME=[D3C62B30:01C7DF61] Subject: Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages] From: stas@zend.com (Stanislav Malyshev) > It's not about the popularity of a word, but the meaning of it. If it > resembles more of a package, let's call it package (as it does Could you give definition of what is a package, so we could see if it resembles more of a package or less? > currently, namespace should be nested.. but that's my opinion). Namespace is a mechanism to create separate contexts ("spaces") in which same names could co-exist without being confused with each other. Nothing says it should be hierarchical or have any specific properties like that. BTW, if you read about Java, even though the keyword used in Java is "package", the functionality is often called "namespace". Quoting Wikipedia again: "In the Java programming language, the idea of a namespace is embodied in Java packages." and "Unlike C++, namespaces in Java are not hierarchical". This is understandable - saying "package" does not invoke any specific concept, while "namespace" does. If we tell "PHP now has packages" it can mean anything. If we say "PHP now has namespaces" virtually everybody would instantly understand what we talk about. We could, of course, say "PHP now has namespaces which are called packages" - but wouldn't it sound, well, weird? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com