Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64610 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65199 invoked from network); 6 Jan 2013 22:22:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2013 22:22:27 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.178 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.220.178 mail-vc0-f178.google.com Received: from [209.85.220.178] ([209.85.220.178:46716] helo=mail-vc0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/B8-04877-229F9E05 for ; Sun, 06 Jan 2013 17:22:26 -0500 Received: by mail-vc0-f178.google.com with SMTP id l6so4815016vcl.9 for ; Sun, 06 Jan 2013 14:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=TpCJHPkYUCwVq5WrqJC1I3BF6IH6nwxJHuvBoWdlHgc=; b=for84J/kz3z4cND8Syn5SuXKoNOt9Xjx+1MewtfSW6A0fMK8KbkeuJNjUlNz4f1bJk lmbR0gpVG4ZHyLECif5aazSMAuuVDBhSY0tVIF/yfqBfEMEwSWgVslV3wbtkOtXKScVO sQKWl6SjxFSm52hWCKXG/f/6kSFNMFWcJ2uYu0HrIYkSX41eTJTbx6hpasDjWEUEawbD 8fpiRWYoe1GrUvhbjhsNXffUHiXa19erV9/sM/vs5W305NKg+R58JQdvshKo2hz3ha/E 0K/yZUCK3GHf2dUmosB+TlYd4DSj8O6OtKYoNVYmjZG8rOQm9NDife7Rpm+UBKFsuL+4 jQ8Q== Received: by 10.52.95.203 with SMTP id dm11mr70824794vdb.112.1357510943813; Sun, 06 Jan 2013 14:22:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.118.52 with HTTP; Sun, 6 Jan 2013 14:22:03 -0800 (PST) In-Reply-To: References: Date: Sun, 6 Jan 2013 23:22:03 +0100 Message-ID: To: Yahav Gindi Bar Cc: PHP internals Content-Type: multipart/alternative; boundary=bcaec50162a195b1c804d2a62532 Subject: Re: [PHP-DEV] [RFC] Reflection annotations reader From: ocramius@gmail.com (Marco Pivetta) --bcaec50162a195b1c804d2a62532 Content-Type: text/plain; charset=UTF-8 Hi there, It would be great to have such a feature in reflection itself, since it would speed up parsing by a huge lot. Anyway, I noticed that the proposed syntax is quite different from the one adopted by Doctrine\Common (therefore by Drupal, Symfony, Typo3, ZF, etc.), which would probably make it a bit hard to migrate for existing apps. If you check the doc comments of https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Annotations/DocParser.phpyou will find the EBNF of the currently used implementation. I'd really love to see this happening! Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 6 January 2013 22:58, 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? > > Regards, > Yahav. > --bcaec50162a195b1c804d2a62532--