Re: Annotations in PHP7
| From: | Alexander Lisachenko | Date: | Mon, 16 Feb 2015 12:10:16 +0000 |
| Subject: | Re: Annotations in PHP7 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82827@lists.php.net to get a copy of this message | ||
2015-02-16 14:42 GMT+03:00 Dmitry Stogov <dmitry@zend.com>:
> the idea to not evaluate non-constant expressions at all, but just keep
> AST and provide interface to read it.
> PHP extensions should be able to use them as they like. (evaluate or
> insert into AST of function(s), etc).
>
> Thanks. Dmitry.
It's a good decision, userland frameworks, such as Doctrine/Go! AOP/etc
will use this AST nodes and node visitors to provide an extension
mechanism. Strong +1 here for AST nodes.