PHP 5.4: Annotations
| From: | Derick Rethans | Date: | Mon, 01 Nov 2010 22:33:31 +0000 |
| Subject: | PHP 5.4: Annotations | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50066@lists.php.net to get a copy of this message | ||
Hi!
The RFC on annotations for PHP http://wiki.php.net/rfc/annotations
suggests to add new syntax to the language to provide meta data for use
in reflection. This sort of meta data is usually provided in the form of
docblocks, which this RFC does *not* state isn't good enough.
The discussion on the mailinglist did not provide a clear consensus for
either for or against. We could put this up for a vote, but I feel that
that is not useful right now, because a few issues needs to be sorted
out first. First, where we actually require annotations (over the
current practise of using docblocks); and secondly whether we really
want to introduce another syntax into the PHP scanners and parsers.
For now I would suggest that this proposal needs to be sorted out before
we can even suggest of putting it in PHP 5.4.
cheers,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug