Dmitry Stogov wrote:
I don't like multiple namespaces per file too.
As I remember they were introduced by Greg's request related to ext/phar. May be he already changed his mind.

'package' or 'namespace' is not so important for me.

To be correct, this has nothing to do with ext/phar, but everything to do with how PHP users do things now. There are several apps such as Doctrine that allow "compiling" their whole libraries into a single large file. This results in substantial performance improvement depending on app design both with and without opcode cache, verified independently by me and by Stas in Zend's labs.

I personally probably won't be using multiple namespaces per file except in rare cases, but I see plenty of good reasons to allow it.

Regards,
Greg

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

Reply via email to