Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83008 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62463 invoked from network); 17 Feb 2015 21:33:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2015 21:33:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:49171] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/03-34644-693B3E45 for ; Tue, 17 Feb 2015 16:33:10 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id D08FB4B0266; Tue, 17 Feb 2015 22:32:47 +0100 (CET) Reply-To: To: "'Alexander Lisachenko'" , "'Dmitry Stogov'" Cc: "'Nikita Popov'" , "'Benjamin Eberlei'" , "'PHP Internals'" , "'Guilherme Blanco'" , "'Pierrick CHARRON'" , "'Pierre Joye'" , "'Zeev Suraski'" , "'Andi Gutmans'" , "'Joe Watkins'" , "'Yasuo Ohgaki'" , "'Sebastian Bergmann'" , "'Stanislav Malyshev'" , "'Rasmus Lerdorf'" References: In-Reply-To: Date: Tue, 17 Feb 2015 22:33:03 +0100 Message-ID: <02a101d04af9$507484f0$f15d8ed0$@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIWCTr4msJ5W7DJk/lLV51yibmvdAKzGGCUAgoW0V0B+zpKeAEm3WG2Atzt2IYBTeL0owHXafdom/rTD6A= Content-Language: fr X-Antivirus: avast! (VPS 150217-1, 17/02/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] Annotations in PHP7 From: francois@php.net (=?utf-8?Q?Fran=C3=A7ois_Laupretre?=) 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=C3=A7ois