Re: [RFC] Reflection annotations reader

From: Date: Tue, 08 Jan 2013 09:11:52 +0000
Subject: Re: [RFC] Reflection annotations reader
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-64662@lists.php.net to get a copy of this message
hi, On Sun, Jan 6, 2013 at 10:58 PM, 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? 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

« previous php.internals (#64662) next »