You are here: Re: Namespaces? Why? « PHP Programming Language « IT news, forums, messages
Re: Namespaces? Why?

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация