Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64662 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77315 invoked from network); 8 Jan 2013 09:11:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2013 09:11:58 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:58148] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/A0-08647-BD2EBE05 for ; Tue, 08 Jan 2013 04:11:56 -0500 Received: by mail-la0-f46.google.com with SMTP id fq13so182826lab.19 for ; Tue, 08 Jan 2013 01:11:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vSpbO+KuDAU+9yirsS9V3uHU+/QtCX/Qo/B/zJUh3Oo=; b=C8WEDyNaNyG0JCM1rnZFMmVDvPP1KGpObuqRPVb++BQR7k6kh0qlTqc4h/7RQPtaZM Bj6GdQ+4yaH7SXJ4iuewn6mr1j1z0xoRVjheuTu1MEFA6FRNVmy4OQZZTWwK9ktdJ8sH hdTMPCO4ig79skA6iRKc8kPwbAGBHAvXwQ03kxi0ANTEdEaZMkgSd+brXgrp8dgiRreR mABQJLoxo0E9awP5/zWsewBmNwv5iPmnqvWSZHomckKQ4a+TfEe2J2dMVF5Ok/iM7Itq uZoFp+uMvm8re9YTVvfHKz4+PhSMmeaw/WrZOkhYwwra1mWX4VHPMcgv22C9pJr3gIDT HPcQ== MIME-Version: 1.0 Received: by 10.152.109.146 with SMTP id hs18mr52516844lab.8.1357636312469; Tue, 08 Jan 2013 01:11:52 -0800 (PST) Received: by 10.112.127.230 with HTTP; Tue, 8 Jan 2013 01:11:52 -0800 (PST) In-Reply-To: References: Date: Tue, 8 Jan 2013 10:11:52 +0100 Message-ID: To: Yahav Gindi Bar Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Reflection annotations reader From: pierre.php@gmail.com (Pierre Joye) hi, On Sun, Jan 6, 2013 at 10:58 PM, Yahav Gindi Bar wrote: > Hi internals! > > In one of the discussions (about the "deprecated" keyword, to be specific), > it was been said that adding ability to read doc-comment annotation could > be handy. Personally, I really think it can be great. > > So, I've created an RFC that propose to improve the Reflection extension by > adding the ability to read annotations decorated in the doc-comment. > > https://wiki.php.net/rfc/reflection_doccomment_annotations > > What is your opinion about this? Using docblock for annotations is a hack in userland because there is no other way to do it nicely using php scripts. That's why I strongly opposed to implement it this way in core, or in SPL. It has to be part of the parser and generated at compile time. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org