Re: [RFC] Reflection annotations reader
| From: | Marco Pivetta | Date: | Sun, 06 Jan 2013 22:22:03 +0000 |
| Subject: | Re: [RFC] Reflection annotations reader | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64610@lists.php.net to get a copy of this message | ||
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 <g.b.yahav@gmail.com> 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.
>