Hi!

Can anybody come up with a good case for why functions and constant should be 'thrown out with the bath water' ?

I can name two:
1. Most (not all, I know, but most) of the use cases for namespaces are in the OO realm, and most of the problems they are to serve come from that realm too. So at least initially most of the active users, which wait for it impatiently, are OO users, and classes are the thing the care the most about. 2. Everything becomes so much simpler with only classes. Classes and functions have very different usage patterns in PHP, so if we try to serve them both we inevitably encounter some "inconsistencies" in how they are served, because of the different usage patterns, which may be a problem for some purists. I personally don't care too much for "inconsistencies" if they serve the user - i.e. allow to do useful things easier - but I know there are other approaches.

Please note that doesn't mean we _must_ drop them - I am just presenting the argument for it, I am aware of the existence of the arguments against too.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to