Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82867 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89854 invoked from network); 16 Feb 2015 17:41:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2015 17:41:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wg0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:62888] helo=mail-wg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/18-36518-9CB22E45 for ; Mon, 16 Feb 2015 12:41:29 -0500 Received: by mail-wg0-f42.google.com with SMTP id n12so14112447wgh.1 for ; Mon, 16 Feb 2015 09:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=JafA4qvnp4gwpbnzRhk439L0bSK4cYEIq9ETQ8jx+ZE=; b=mEqdRSWvKStq8LvWbH4NeAeIjxxMdh65LEZjckm+AZSsGFea/56bZ0mDTcaiU2bq8X TVqV283T/bNScDXx+iCNwEnD0b1k/ivwWP4NHrhAGwnn4+wQ7NyAeyPY0MPCr9q2CzGl Q7elKiJIa6285u5SNeg0oWVuv8/HxHIiShgTx0uUvXyMFYb23g19aHVIpfLRlhw26t2o 5N7xkH4HwEk5aPaZb1dPVgF2R7X73NlkHv6z2HoFA6kkSXMy0CkLuEREyNoe4iTo/Ag6 j/P14rfhKGK/u6SaGmvlrDVlnmFcfqFH8avQxA0JRf2TDLiCXJ7ptcjCR8EPUFdjSuCD jtRg== X-Received: by 10.194.175.39 with SMTP id bx7mr53906207wjc.22.1424108484742; Mon, 16 Feb 2015 09:41:24 -0800 (PST) Received: from Stas-Air.local (p5099778e.dip0.t-ipconnect.de. [80.153.119.142]) by mx.google.com with ESMTPSA id di11sm20627828wid.8.2015.02.16.09.41.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Feb 2015 09:41:23 -0800 (PST) Message-ID: <54E22BBD.30006@gmail.com> Date: Mon, 16 Feb 2015 18:41:17 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Dmitry Stogov , PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: Annotations in PHP7 From: smalyshev@gmail.com (Stanislav Malyshev) 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? 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. > 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