Re: Question about Namespace patch

From: Date: Mon, 23 Jul 2007 15:59:54 +0000
Subject: Re: Question about Namespace patch
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-31201@lists.php.net to get a copy of this message
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

« previous php.internals (#31201) next »