Re: Annotations in PHP7

From: Date: Tue, 17 Feb 2015 21:51:09 +0000
Subject: Re: Annotations in PHP7
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-83010@lists.php.net to get a copy of this message
François, Doctrine relies on nested annotations for a variety of mapping information. One example: http://doctrine-orm.readthedocs.org/en/latest/reference/association-mapping..html#one-to-many-unidirectional-with-join-table []s, On Tue, Feb 17, 2015 at 4:33 PM, François Laupretre <francois@php.net> wrote: > 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 > > > > -- Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada

« previous php.internals (#83010) next »