Re: Simple Namespace Proposal

From: Date: Mon, 16 Jul 2007 02:04:43 +0000
Subject: Re: Simple Namespace Proposal
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-30953@lists.php.net to get a copy of this message
Is this what other languages try to solve with: import foo::*; (untested, I don't know if this is implemented) ?
No, not implemented and probably won't be. It isn't necessary for solving the long names problem and in fact brings the whole same problem back again by putting all the names back into global namespace. If you have one-level space, it's nothing wrong with writing foo::bar. The import ensures you never have to write more than two ::'s (space::class::function), but we didn't try to get it down to one :: because it's too much trouble. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#30953) next »