On Jul 18, 2006, at 5:08 PM, Greg Beaver wrote:
Andi Gutmans wrote:
[snip]
an early point and we should make the right decision now. I'd
prefer that
from now on going forward we prefix all new classes with Php. In
PHP 6, once
This is a good solution. 3 extra characters for each class have not
hurt spl users (no reports of SPL-related carpal tunnel syndrome yet,
right? :). It will make it simple to figure out whether a class is
internal (does it start with "Php?") and will eliminate all future
debate. I have no qualms renaming the PEAR packages that I maintain
that start with PHP_ if this decision is made.
I am not sure I like this idea of prefixing all the classes with
PHP_. Having PHP_TextIterator seems kind of wonky to me. Besides, I
don't really see any SPL_ prefixed classes, they are all either
*Iterator or *Object. I could argue that Perl or Python don't do this
prefixing, but I guess they do have namespace support.
-Andrei
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php