Re: Docblocks vs Annotations (Was: Re: [PHP-DEV] [RFC] Reflection annotations reader)
| From: | Mike van Riel | Date: | Wed, 09 Jan 2013 21:04:09 +0000 |
| Subject: | Re: Docblocks vs Annotations (Was: Re: [PHP-DEV] [RFC] Reflection annotations reader) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64787@lists.php.net to get a copy of this message | ||
On 09.01.2013 13:12, Derick Rethans wrote:
There is a tokenizer for this already that Greg wrote ages ago in pecl: http://pecl.php.net/package/docblock - why can't that be extended to parse your style of annotations in docblocks?To be honest; I haven't had the time yet to learn and apply extension programming and work / expand on that. I would love for an extension to come to life or even a core module so that we can all standardize on it. As far as I am concerned I am not advocating my personal way or that of phpDocumentor but of the PHPDoc standard which is above that. And as a last note to this mail I would like to add that annotations are not part of PHPDoc. The draft that I have written will allow for the annotation syntax (current PHPDoc does not) but actual handling of annotations will always be out of scope as far as I am concerned.