Re: [RFC] Reflection annotations reader

From: Date: Mon, 07 Jan 2013 00:16:59 +0000
Subject: Re: [RFC] Reflection annotations reader
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-64617@lists.php.net to get a copy of this message
Just a thought on this, some other languages support attributes which is similar but could also allow the engine to use them for things. As a quick example (roughly based on what I've seen in c#) but applied to PHP use case: class a { [$date(Nullable)] public function foo(DateTime $date) { ... } } -Clint On Jan 6, 2013, at 3: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? > > Regards, > Yahav.

« previous php.internals (#64617) next »