On 5-Nov-06, at 1:13 PM, Christian Schneider wrote:

Hello Marcus, hello Ilia,
now you two got me confused:

Marcus Boerger wrote:
we have the same problem for functions since years, why is there suddenly such a big problem with classes now? All new php/pecl classes will follow
one of the following rules:
- Prefix with the extension name
- Postfix with "Iterator"
- Postfix with "Exception"
that seems the same amount of protection as prefix functions with extension name plus underscore. I don't see any problem since the above rule is in
place.

This would mean classes should be prefixed by extension name...

That is the common case, yes. In fact the date extension's classes follow this convention to the letter.
DateTime + DateTimeZone (Date is the extension name).

However, for native classes there maybe exceptions to simplify usage, when a need for such exceptions arise this will be discussed on this list.

Ilia Alshanetsky

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to