Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83010 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68682 invoked from network); 17 Feb 2015 21:51:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2015 21:51:33 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.171 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.223.171 mail-ie0-f171.google.com Received: from [209.85.223.171] ([209.85.223.171:45272] helo=mail-ie0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/04-34644-4E7B3E45 for ; Tue, 17 Feb 2015 16:51:33 -0500 Received: by iecat20 with SMTP id at20so44277724iec.12 for ; Tue, 17 Feb 2015 13:51:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=GhCNX8MsAFeMvALqvwBDQcSOl1uP+wbdsa27nfqyiuc=; b=BaV9R12lge41aMq30Fzg63ppbcy+CWDt6FbW72ZHVjeIT8barT1Y5Lv/3TLVZt1brB YWEwDX5CD98A2WTBWTMqw406xdR6GMp+EXHUzwnV/h161BLiO2xqTwyN7iXyFfjfYhPe dvLZXKyPJR/lUmcIFEqrMg25xUhK2LmIAaVzXCQKS3I7aYgmBWAlG7e4NjYInjZ9e3cd Ut3gpgC2qPLnuhsfboVuN+UeiTq/rLxzlN1zimg1iuw/4C3IpJk+JdRIVfKaiuyZkgnq d06S3noj/dFUoijfYeRFxLRQ1ao7qwrqDYQFQBUmJy9Njz3Z394REIe0qGEFUMveEqWy vDfg== X-Received: by 10.107.138.195 with SMTP id c64mr38389108ioj.47.1424209890056; Tue, 17 Feb 2015 13:51:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.238.75 with HTTP; Tue, 17 Feb 2015 13:51:09 -0800 (PST) In-Reply-To: <02a101d04af9$507484f0$f15d8ed0$@php.net> References: <02a101d04af9$507484f0$f15d8ed0$@php.net> Date: Tue, 17 Feb 2015 16:51:09 -0500 Message-ID: To: francois@php.net Cc: Alexander Lisachenko , Dmitry Stogov , Nikita Popov , Benjamin Eberlei , PHP Internals , Pierrick CHARRON , Pierre Joye , Zeev Suraski , Andi Gutmans , Joe Watkins , Yasuo Ohgaki , Sebastian Bergmann , Stanislav Malyshev , Rasmus Lerdorf Content-Type: multipart/alternative; boundary=001a113ea122954bb9050f4fb4a3 Subject: Re: [PHP-DEV] Annotations in PHP7 From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --001a113ea122954bb9050f4fb4a3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Fran=C3=A7ois, 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=C3=A7ois Laupretre 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 min= d. > > > As for annotations, general use-case is appreciated. This can be extend= ed > > 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 ca= n > be needed for. > > Thanks > > Fran=C3=A7ois > > > > --=20 Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --001a113ea122954bb9050f4fb4a3--