Re: namespace issues

From: Date: Fri, 26 Sep 2008 09:48:45 +0000
Subject: Re: namespace issues
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-40700@lists.php.net to get a copy of this message
Arvids Godjuks wrote:
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.
my god that's basically a PHP version of the Java "Hello World" <weg>

« previous php.internals (#40700) next »