Re: namespace issues
| From: | Arvids Godjuks | Date: | Fri, 26 Sep 2008 05:43:44 +0000 |
| Subject: | Re: namespace issues | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40698@lists.php.net to get a copy of this message | ||
2008/9/22 Stanislav Malyshev <stas@zend.com>
> Hi!
>
> 3. Functions will not be allowed inside namespaces. We arrived to
> conclusion that they are much more trouble than they're worth, and summarily
> we would be better off without them. Most of the functionality could be
> easily achieved using static class methods, and the rest may be emulated
> with variable function names, etc.
>
> Comments?
> --
> Stanislav Malyshev, Zend Software Architect
> stas@zend.com http://www.zend.com/
> (408)253-8829 MSN: stas@zend.com
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
That means, that if I have a tiny, 70-100 line script and I use a package in
a namespace with some global functionality - it should be 100% OOP? Sorry,
but that's OOP for the sake of OOP. It's like writing "Hello world!" using
patterns (here is an example:
http://www.phppatterns.com/docs/design/hello_world_in_patterns)
-1 on this.