|
|
|
|
|
by damncabbage
5506 days ago
|
|
> Names don't have to be treated like property, you can invoke policy on them and change bad names. 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: define('ACTIVE',1);
define('ACTIVE','active');
Makes life very interesting.) |
|