Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78726 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52970 invoked from network); 5 Nov 2014 16:23:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2014 16:23:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 66.111.4.29 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 66.111.4.29 out5-smtp.messagingengine.com Received: from [66.111.4.29] ([66.111.4.29:56569] helo=out5-smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/60-50436-3EE4A545 for ; Wed, 05 Nov 2014 11:22:59 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A8C01202F4 for ; Wed, 5 Nov 2014 11:22:56 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 05 Nov 2014 11:22:56 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:date:from :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=EBAE0VdPxsPYtDyrracxCT EFhLw=; b=WDALcXclDk7nJAXz2T6Rou5eDolhbzn3DaEdcca5eCf1ArCrS0oHRO Ixy2I0YJAuMrPAVklwoP3nIKNmDNwzNDKIqB6o5IXp1BYp1aP2I3uk46+DRLXsm9 l7wgskCrPIdr+ABikZTbWuAPYvwDzAl7Bm5NwPWVdspsmpQqHUp48= X-Sasl-enc: REuomToo5YtZrs0Vn11AEvBsQ0VXBd/Zxrvry4kj3VQZ 1415204576 Received: from Palantirs-MacBook-Pro-5.local (unknown [63.250.249.138]) by mail.messagingengine.com (Postfix) with ESMTPA id 6BEBCC00006 for ; Wed, 5 Nov 2014 11:22:56 -0500 (EST) Message-ID: <545A4EE0.7000802@garfieldtech.com> Date: Wed, 05 Nov 2014 10:22:56 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: internals@lists.php.net References: <5457AF2F.90808@php.net> <5457BDB7.8070701@garfieldtech.com> <54589A8D.3020607@sugarcrm.com> <1C3F4FA3-ABD5-4F6F-A898-F63AC1C723D5@ajf.me> <54591A76.8070302@sugarcrm.com> <967E30E5-71CB-40F8-9AE2-733D327DE197@ajf.me> <545945A5.2090204@sugarcrm.com> In-Reply-To: <545945A5.2090204@sugarcrm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Annotation PHP 7 From: larry@garfieldtech.com (Larry Garfield) On 11/4/14, 3:31 PM, Stas Malyshev wrote: > Hi! > > >> Primarily, I do not see docblocks as the right place to store class' > metadata information. Metadata != Comments. > > I personally regard this as a kind of superstition. There's nothing > wrong with extending what can be in comments. In fact, Javascript was > officially "HTML comment" for years, and it didn't prevent anybody from > using Javascript. There are instances of significant comments in various > environments. Outright refusing comments can be significant is just > arbitrarily limiting our options for no reason. I don't say it > necessarily the best option, but we should not reject it because "oh > noes, significant comments!". It has been done, and it's nothing > special, just one of the possibilities Javascript is a good analogy, actually. It started off as something you stuck in comments to hide it, just in case. But really, no one does that anymore and hasn't for years. Once it became obvious that it was useful, here to say, and any browser anyone cared about supported it directly it became a first-class citizen, without any comment hacks. Annotations have been a comment hack in PHP for a long time now. They've proven their usefulness. Many large projects use them. They've been proven to work. It's time for them to also become first-class citizens where we can all benefit from them in more robust ways, including simplifying the de facto workflow and toolchain. --Larry Garfield