Re: [RFC] Reflection annotations reader

From: Date: Sun, 06 Jan 2013 22:24:45 +0000
Subject: Re: [RFC] Reflection annotations reader
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Yahav,

Am 06.01.2013 um 22:58 schrieb Yahav Gindi Bar <[email protected]>:
[...]
> 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?


From what I've seen in various components using annotations, this kind of support wouldn’t be
enough. I would much prefer direct mapping of a single annotation on a class including a way to
define properties and such. This is how e.g. Doctrine, Symfony, Zend Framework etc. all utilize
annotations nowadays.

cu,
Lars


Thread (78 messages)

« previous php.internals (#64611) next »