On Tue, 18 Jul 2006, Rasmus Lerdorf wrote:

> But having PHPFoo does not in any way prevent PHP::Foo() in a future version.

Maybe not, but you're already trying to find workaround for a problem 
that isn't even there yet...

> Not namespacing it in 5.2 and then namespacing it in 6 means we break 
> stuff for one version for no reason.  The "screw you guys, you should 
> namespaced your stuff" argument is the least userfriendly approach we 
> could possibly take here and doesn't buy us anything longterm.

Actually, it does if we make enough fuss about it. We (as Lukas 
suggests) should make these guidelines for user space naming and put the 
rule "prefix your code" in there. In the end it's only education that 
helps and avoids more problems in the future.

> I can see Andrei's argument for the iterator stuff where you do 
> actually have to type it often, but his identifiers are already 
> unlikely to clash and we could probably make an exception there.

Well, we already use prefixes for extensions, such as Soap* and DOM* and 
Spl*... so I don't see anything inheritly wrong with "DateTime" and 
"DateTimeZone" - they're both prefixed with the extension "Date" and 
they are not *that* likely to be used as just "Date". However, if you 
want that all classes are prefixed, we should do that for *all* of them 
and don't make exceptions for TextIterators. 

regards,
Derick

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

Reply via email to