Re: Annotations in PHP7

From: Date: Mon, 16 Feb 2015 18:43:46 +0000
Subject: Re: Annotations in PHP7
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-82872@lists.php.net to get a copy of this message
On Mon, Feb 16, 2015 at 8:41 PM, Stanislav Malyshev <smalyshev@gmail.com> wrote: > Hi! > > > The test there is self explainable. Of course, annotations just provide > > a way to add metadata, but doesn't define attribute names or the ways > > they are going to be used. Only Reflection API to read. > > Looks fine, but I'm not sure how one can use the AST that the reflection > returns. Is it for extensions only? > I don't know the best way yet. Nikita worked in extension for AST traversing in PHP. > > Also, for some annotations you want values - i.e. optimization_level, > and for some - expressions. So there should be an easy way to convert > the AST to the actual value for whoever implements the annotation. > agree. Thanks. Dmitry. > > There are still a lot of technical problems that have to be solved. > > Right now, we just need to answer a question - if we like this in PHP7? > > I'd like to have some annotations in PHP 7, definitely. > > -- > Stas Malyshev > smalyshev@gmail.com >

« previous php.internals (#82872) next »