Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49636 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42998 invoked from network); 13 Sep 2010 18:22:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2010 18:22:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:53837] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/3A-24501-7DB6E8C4 for ; Mon, 13 Sep 2010 14:22:18 -0400 Received: from il-gw1.zend.com (unknown [10.1.1.21]) by il-mr1.zend.com (Postfix) with ESMTP id 97F0150539; Mon, 13 Sep 2010 20:20:11 +0200 (IST) Received: from LAP-ZEEV.zend.com ([10.1.2.26]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 13 Sep 2010 20:22:11 +0200 Message-ID: <7.0.1.0.2.20100913202055.0d227168@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Mon, 13 Sep 2010 20:22:02 +0200 To: Gustavo Lopes Cc: In-Reply-To: References: <4C873C0F.1010200@zend.com> <4C879613.7090709@zend.com> <4C887D2B.2000605@zend.com> <4C8AC526.7000505@sugarcrm.com> <4C8B6168.30504@mohiva.com> <4C8BC81E.8000605@sugarcrm.com> <7.0.1.0.2.20100913145703.0d226d90@zend.com> <7.0.1.0.2.20100913172559.0d2277d0@zend.com> <7.0.1.0.2.20100913183427.0d2277d0@zend.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-OriginalArrivalTime: 13 Sep 2010 18:22:11.0662 (UTC) FILETIME=[954F0EE0:01CB5370] Subject: Re: [PHP-DEV] Re: PHP Annotations RFC + Patch From: zeev@zend.com (Zeev Suraski) At 19:25 13/09/2010, Gustavo Lopes wrote: >On Mon, 13 Sep 2010 17:46:42 +0100, Zeev Suraski 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