Re:Erlang inventor: Why do we need modules and files?
by joelangeway on Tuesday May 24, 2011 @08:08PM
(#2582279)
OK, I might have change my mind about that. I have been lucky enough not to have had to use multiple selfishly named libraries I guess.
A lot of PHP projects involve working with existing components or apps. Some of these use the global namespace with very obvious names, eg. phpBB's User, CodeIgniter's Session. Try and combine two components that use the same obvious names, and everything explodes in a giant mess of E_ERROR.
(It's the same deal with globally-scoped constants:
Makes life very interesting.)