Re: variables in namespaces, was: On closures and lamdba
| From: | Stanislav Malyshev | Date: | Wed, 24 Feb 2010 17:45:48 +0000 |
| Subject: | Re: variables in namespaces, was: On closures and lamdba | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47052@lists.php.net to get a copy of this message | ||
Hi!
It is not a question of number -- you may have some module where the functions need to share a couple of variables between themselves, eg a file handle.Congratulations, you have just discovered why OO exists :)
Objects are not always the answer.If you refuse to use language construct that fits your purpose and try to reinvent it in a backwards way - it won't end up in anything useful. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com