RE: [PHP-DEV] Annotations in PHP7
| From: | François Laupretre | Date: | Tue, 17 Feb 2015 21:33:03 +0000 |
| Subject: | RE: [PHP-DEV] Annotations in PHP7 | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83008@lists.php.net to get a copy of this message | ||
Hi Alexander,
> De : Alexander Lisachenko [mailto:lisachenko.it@gmail.com]
>
> This RFC consists of two parts: parsing API and parser extension API. Last
> one can be rejected, however it can be perfectly connected with annotation
> RFC (if AST will be used as values)
Parser extension API is great. Go on with it. I have a lot of uses in mind.
> As for annotations, general use-case is appreciated. This can be extended
> later in future versions of PHP. Therefore, annotation syntax should allow
> to define key and values. Value can be valid expression (AST? concrete
> node? compiled value?) or can recursively contain nested annotations.
Can you give a use case for nested annotations ? I don't see what they can be needed for.
Thanks
François