Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31201 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10922 invoked by uid 1010); 23 Jul 2007 16:00:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10907 invoked from network); 23 Jul 2007 16:00:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2007 16:00:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; 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:15975] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/A2-27148-290D4A64 for ; Mon, 23 Jul 2007 12:00:23 -0400 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 23 Jul 2007 09:00:01 -0700 Message-ID: <46A4D07A.7060006@zend.com> Date: Mon, 23 Jul 2007 08:59:54 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: =?ISO-8859-2?Q?Pawe=B3_Stradomski?= CC: internals@lists.php.net References: <46A31D95.2080407@fischer.name> <200707231140.55535.pstradomski@gmail.com> <46A4BA4F.6090506@dealnews.com> <200707231643.22562.pstradomski@gmail.com> In-Reply-To: <200707231643.22562.pstradomski@gmail.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Jul 2007 16:00:01.0613 (UTC) FILETIME=[86C7DFD0:01C7CD42] Subject: Re: [PHP-DEV] Question about Namespace patch From: stas@zend.com (Stanislav Malyshev) > Because I just want those names directly available in one part of my > application - the one which uses a lot of SQL. As far as I see this is not If you want names to be part of global space - don't use namespaces. Namespaces are meant to take names OUT of global space. > All other languages I know that have namespaces (Java, python, C++) allow > programmers to import other namespaces locally - usually for a single file. Both Java and Python have much more rigid relations to files than PHP does - in Java, class is file, more or less, and package is directory, while in Python module is file and package is directory. Also, Java is a compiled language - meaning you have much more information in compile time than with PHP - all classes you use are to be known compile-time. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com