Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49625 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9908 invoked from network); 13 Sep 2010 15:59:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2010 15:59: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:47135] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/D3-24501-55A4E8C4 for ; Mon, 13 Sep 2010 11:59:18 -0400 Received: from il-gw1.zend.com (unknown [10.1.1.21]) by il-mr1.zend.com (Postfix) with ESMTP id 2BE515052F; Mon, 13 Sep 2010 17:57:14 +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 17:59:13 +0200 Message-ID: <7.0.1.0.2.20100913175454.0d2273f8@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Mon, 13 Sep 2010 17:59:13 +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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-OriginalArrivalTime: 13 Sep 2010 15:59:13.0860 (UTC) FILETIME=[9C8A5840:01CB535C] Subject: Re: [PHP-DEV] Re: PHP Annotations RFC + Patch From: zeev@zend.com (Zeev Suraski) At 17:51 13/09/2010, Gustavo Lopes wrote: >On Mon, 13 Sep 2010 16:28:47 +0100, Zeev Suraski wrote: > >>At 16:39 13/09/2010, Pierre Joye wrote: >>>You are not serioulsy suggesting to use phpdoc for runtime annotation >>>support? Are you? >> >>I actually am (either that or get what you want done in some other >>way). It's a rare enough use case that I think it's a very reasonable >>compromise. The disadvantages of adding a whole new branch of syntax, >>for this rare use case, far outweigh its advantages - IMHO. > >Rare use case? Have you seen any recent Java framework? Or Java EE 6? Or >design by contract in C#? A declarative programming style can be very >handy. Framework code (as in code that actually goes into a framework, not code that uses a framework) represents a tiny percentage of the PHP codebase at large. Most of it is application code. I think great frameworks can be created in PHP w/o annotations (there are numerous live examples attesting to that) - and the bang/buck of introducing this whole new concept and the associated complexity to everyone is not high. Zeev