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.ya...@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.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to