2011/10/8 Ferenc Kovacs <tyr...@gmail.com>: > Hi > > https://wiki.php.net/todo/php54/vote > I've just noticed that the php namespace and the primitive types > (string, bool, int) are still not reserved. > the primitive types didn't had the 66% of the votes, but the php > namespace did, so at least that should have been reserved in 5.4 > already. > what is the status about that?
As far as I remember the thread about that, we concluded that while it may be ok to make them reserved words in the global namespace, it is absolutely not reasonable to make them reserved in a way it would prevent creating namespaced classes like: \Company\Types\Int, \Company\Types\String. Namespaces being created, among other reasons, to avoid name collisions, it would be unacceptable to have that BC break for people having take care of namespacing that kind of classes. And since the parser is too dumb for now, we just can't make it (cfr your own mail in that thread). The votes made on that topic where mostly done by people who obviously haven't take care of the technical limitations nor having followed the BC problems it generates. That topic shouldn't have been voted at all. Ref: http://marc.info/?t=131031633300001 Cheers, Patrick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php