At 19:25 13/09/2010, Gustavo Lopes wrote:
On Mon, 13 Sep 2010 17:46:42 +0100, Zeev Suraski <z...@zend.com> wrote:
I wasn't talking about the patch, I was talking about the need of end
users to understand yet another new concept and syntax. PHP used to be
a language one could pick up over a weekend. I'm happy it didn't
stagnate and stay where it was 10 years ago, but considering PHP is
already a mature language, I think we should be much more picky in the
features we introduce to the language core.
OK, so let's compare it other concepts:
- LSB. Can you explain from the top of your head when when the called
scope is reset or not (e.g. with parent::, self::, className::, possibly
in non-static contexts) in a function call? I can't.
- Namespaces. It takes a while to memorize the resolution rules.
- References. Need I say more? You almost need to know the implementation
to understand them. Being called "references" doesn't help either.
The proposed annotations are basically object instances that are returned
when you call getAnnotations. There are no itemized lists of rules. I
don't see how this is complex.
The fact we have complex components in PHP is no excuse to add more
complexity to the language. It's not a binary state, with PHP
"already being complex", so we can add as much complexity as we
want. Complexity accumulates.
Zeev
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php