Re: no chance of multiple namespaces per file
| From: | Paul M Jones | Date: | Tue, 04 Dec 2007 22:14:35 +0000 |
| Subject: | Re: no chance of multiple namespaces per file | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-48671@lists.php.net to get a copy of this message | ||
On 04 Dec 2007, at 14:45, Joshua Eichorn wrote:
Gregory Beaver wrote:I have no problem with forbidding them either. With that in mind, I think we should be clear on a couple points: 1. *Do not* use formal PHP namespaces. 2. *Do* use informal namespaces (i.e. pseudo-namespace prefix on all class names, function names, global vars and global constants, et al). If there is some way to additionally say "if you must use formal PHP namespaces, do so in X fashion" that would be good, but I don't see offhand how it would be possible/reasonable to combine formal and informal namespaces. -- Paul M. Jones <http://paul-m-jones.com> Solar: Simple Object Library and Application Repository for PHP5. <http://solarphp.com> Join the Solar community wiki! <http://solarphp.org> Savant: The simple, elegant, and powerful solution for templates in PHP. <http://phpsavant.com>hi all, There's no chance of multiple namespaces per file. If that's an issue, we can drop namespaces (meaning forbid their usage) from the coding requirements in PEAR2. Comments? GregI don't have a problem with it. Once you have namespaces you can use them to alias long names to short ones when coding. You don't gain much by actually using the namespaces. We can also provide example imports for shorter names.