Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8066 invoked from network); 10 May 2011 16:48:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 May 2011 16:48: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.199.177.89 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 212.199.177.89 il-mr1.zend.com Received: from [212.199.177.89] ([212.199.177.89:49353] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/D6-04851-F4C69CD4 for ; Tue, 10 May 2011 12:48:16 -0400 Received: from il-gw1.zend.com (unknown [10.1.1.22]) by il-mr1.zend.com (Postfix) with ESMTP id 8C08D60699; Tue, 10 May 2011 19:47:12 +0300 (IDT) Received: from IL-EX2.zend.net ([fe80::60b2:93c9:cabf:4659]) by il-ex2.zend.net ([fe80::60b2:93c9:cabf:4659%15]) with mapi id 14.01.0255.000; Tue, 10 May 2011 19:47:29 +0300 To: Matthew Weier O'Phinney CC: "internals@lists.php.net" Thread-Topic: [PHP-DEV] 5.4 again Thread-Index: AQHMDdlSN+HJEeoMgkanWhVEycnqd5SDpReAgABVwwCAAGZegIAAIWIAgAALsYCAACPDAIAA7J8AgAAGuQCAAJTIPoAADgRY Date: Tue, 10 May 2011 16:47:28 +0000 Message-ID: <46BDB600-7040-4160-A310-3E2BC1F23E41@zend.com> References: <4DC729EE.9090600@sugarcrm.com> <4DC75FFF.40008@lerdorf.com> <4DC7A7F0.4000504@sugarcrm.com> <4DC819D0.5010008@lerdorf.com> <3680807C-229A-4889-9181-8953303425EC@stefan-marr.de> <4DC9081C.3020808@php.net> ,<17.15.04851.C5069CD4@pb1.pair.com> In-Reply-To: <17.15.04851.C5069CD4@pb1.pair.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [PHP-DEV] 5.4 again From: zeev@zend.com (Zeev Suraski) On May 10, 2011, at 18:57, "Matthew Weier O'Phinney" wrote: > With annotations, my main issue, which I voiced early (and others did as > well), is that we can already do much of what the RFC proposes by > parsing annotations in docblocks. In fact, adding the support > potentially creates more work for developers (more on that below). >=20 > I don't see a need for a new grammar and syntax; why don't we just > provide a standard for annotations within docblocks, and provide a > native parser for annotations that follow that format? This allows folks > who are already using docblock annotations a boost in speed, and only > gets invoked during reflection (since otherwise it's considered a > comment).=20 >=20 > Guilherme often raises ZF's server classes as poster children for why > annotations support is needed. However, I'd like to note that I don't > feel this way at all. In fact, annotations support would create _more_ > work for us. Why? Because now we'd need both our docblock comments (in > order to generate the API docs) AND annotations (to provide the server > hinting we provide, which currently is derived from PHPDoc annotations). > A native docblock annotation parser would much better suit our purposes. >=20 > So, basically, we're in a situation where there's no consensus on > whether the feature is needed or what the approach should be, and people > pointing fingers at eachother indicating the other party is not > listening or providing constructive feedback. I think that's reason > enough to pan the feature for 5.4. Couldn't have phrase it better, it illustrates the opinion I shared here a = few months ago very well. +1 Zeev