Posted by Steve on 09/27/07 16:09
"RageARC" <ragearc@gmail.com> wrote in message
news:1190902180.451714.139430@d55g2000hsg.googlegroups.com...
>I use other people's libraries often, but I never had libraries
> clashing with each other because of that, so I don't understand what's
> the fuss about. An example:
>
> http://www.petitiononline.com/phpns/
>
> Quote:
> "We implore you to add support for Namespaces in the next possible
> release and to not wait until PHP6."
>
> This is what I don't understand! Why people are so crazy about it.
isolation...a key aim in oop in any language. it helps php know what
resource you're wanting. if you've ever worked on a project with a couple of
other developers, did you ever have it happen that a DEFINE was done with
the same name as another was using? you probably found out when both
resources were used at the same time (i.e. one script calling two classes,
each doing the define). namespaces help avoid things like that - as someone
said, collision.
[Back to original message]
|