Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82872 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2282 invoked from network); 16 Feb 2015 18:43:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2015 18:43:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.172 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.172 mail-vc0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:42583] helo=mail-vc0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/F9-36518-56A32E45 for ; Mon, 16 Feb 2015 13:43:49 -0500 Received: by mail-vc0-f172.google.com with SMTP id kv7so11033954vcb.3 for ; Mon, 16 Feb 2015 10:43:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=DhE3kDQV23VHEwKfiIyQNixcje86ixzqRjSudoDSQmY=; b=Vw/StaC/YNcEg8Gz1j+1ZcLcvXolma1D3UOwgqx1sJfuwxOdb6GWJ6oUSj4JymGUVo BWQpCn70AVEuKCvXh9xBuZWPi9zj3BOfiQDLEa0R6Z+GtXJMtRnf6mjKltusf8V/gX4B 0kQ+XxkKe52nU01LVkqI4fYc9EMHMO0yD8NDxS1YghTiK2zwt1+W0PFH3oibm9qq3+RD e4sGADAlez69m2TdKaKfAVTE4d7WrGHX8cFM3fO8m3ex7XyqA/zUAtSUi11Pqmyvg10d CCaHaHtJMrWGi+oKbtNoMwTUYRtflmbEtLu8KzT2+pfa1XUTtJiu+rX9Xmz9/+nkexPP 8fKA== X-Gm-Message-State: ALoCoQmY/4dOe7nayU6CG2RZUVIQMIRczIks4wQrW/21LtRcrU71tnJEt17T/AAm222ZgJMkwdXyizEobSp0cNERbPK2Y9Z4iJO6UfXHxNXQvZ9iTmL9lAlQRELxefeRAUOmlYE5xy300U7uVBY2PgNf/Adcv8gKwg== MIME-Version: 1.0 X-Received: by 10.52.25.11 with SMTP id y11mr5579008vdf.51.1424112226456; Mon, 16 Feb 2015 10:43:46 -0800 (PST) Received: by 10.52.74.73 with HTTP; Mon, 16 Feb 2015 10:43:46 -0800 (PST) In-Reply-To: <54E22BBD.30006@gmail.com> References: <54E22BBD.30006@gmail.com> Date: Mon, 16 Feb 2015 22:43:46 +0400 Message-ID: To: Stanislav Malyshev Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a1133e5f260ec8b050f38f7d8 Subject: Re: Annotations in PHP7 From: dmitry@zend.com (Dmitry Stogov) --001a1133e5f260ec8b050f38f7d8 Content-Type: text/plain; charset=UTF-8 On Mon, Feb 16, 2015 at 8:41 PM, Stanislav Malyshev 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 > --001a1133e5f260ec8b050f38f7d8--