Re: Annotations in PHP7
| From: | Benjamin Eberlei | Date: | Mon, 16 Feb 2015 12:12:39 +0000 |
| Subject: | Re: Annotations in PHP7 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82828@lists.php.net to get a copy of this message | ||
On Mon, Feb 16, 2015 at 1:10 PM, Alexander Lisachenko <
lisachenko.it@gmail.com> wrote:
>
> 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.
>
i think its a bit complicated for userland, although i clearly see the
benefit for things like DbC and AOP.
but what is the API of an AST node and how does the visitor look like?