Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82860 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72107 invoked from network); 16 Feb 2015 16:02:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2015 16:02:40 -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.180 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.180 mail-vc0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:46581] helo=mail-vc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/85-36518-F9412E45 for ; Mon, 16 Feb 2015 11:02:40 -0500 Received: by mail-vc0-f180.google.com with SMTP id im6so10820049vcb.11 for ; Mon, 16 Feb 2015 08:02:37 -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=6VhDc4oaXOylDKLVGzkJmbUJEcn6JBX26VqNyJERLOE=; b=E9M28HVZmKQUhGsVLkOdKifTcO6f4qkktuh4iIcg4g9dBFKjvwJdrzfMyXLl6XmY5L l00VOeD7Hpeme0HNNyq+HQZJ2ApmbGaDcTuoyJVhpMVGKX1sPDf2bVqI84x+hw20+0k8 GcPyU3lVxrti1psOgeSnFfePZ6nmH92vHaCJ8XlAYVsaPFTNf9VwVo1/N0z0Jorya4Xl /AquIXSKHbSGwSVN22ekmGBgNIhjBpdoaAGisYkN252tsqNrWA9xvPfRGQlF/BrFkUHZ isbXxVfWUdIe0XpyDzo4cYJdeBhrVmCHBA5lWKoUFGJXwy76vzhGj+Gp2ACewgo1yDlm dsWA== X-Gm-Message-State: ALoCoQmN1TPv9T2Ubh0jBYr2MV0w8kFrJgk+9VwOTxr8NQJLgQlAcie7X8l9/JD8rRLax8+MZc0KdqJ0fmPiFnhEp7wRhaVHtU7/bCMOhS6CGV+RGkRrxKWLs0ZQYHmeDst3wNbyehUJ+FCGs6xlFR90MVZsAfAIHA== MIME-Version: 1.0 X-Received: by 10.52.162.72 with SMTP id xy8mr13625451vdb.12.1424102557337; Mon, 16 Feb 2015 08:02:37 -0800 (PST) Received: by 10.52.74.73 with HTTP; Mon, 16 Feb 2015 08:02:37 -0800 (PST) In-Reply-To: <54E20FC0.3060104@gmail.com> References: <54E20FC0.3060104@gmail.com> Date: Mon, 16 Feb 2015 20:02:37 +0400 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e016283260de6fc050f36b748 Subject: Re: [PHP-DEV] Re: Annotations in PHP7 From: dmitry@zend.com (Dmitry Stogov) --089e016283260de6fc050f36b748 Content-Type: text/plain; charset=UTF-8 this will work, of course, and robust implementation wouldn't take more than a day :) but it'll require user-level parser again. no big advantage in comparison to doc-block. Thanks. Dmitry. On Mon, Feb 16, 2015 at 6:41 PM, Rowan Collins wrote: > Nikita Popov wrote on 16/02/2015 12:14: > >> I think this is a great idea, but we should postpone it to PHP 7.1. >> Especially if you want to make this AST based (which would require both >> stabilizing the AST we return for expressions and having APIs to do >> codegen >> based on the AST) it will require a lot of work both for design and >> implementation. I don't think it's realistic to include a high-quality >> implementation in PHP 7. >> > > Is there any value in deciding the initial syntax for 7.0, and > implementing only non-parameterised annotations, i.e. you can call > hasAnnotation(string): bool but nothing else? > > This wouldn't be enough to migrate existing annotation frameworks or > implement DbC and AOP, but it would mean we weren't adding a major syntax > element in a .1 release, which just feels tidier to me somehow. > > It also commits us to a roadmap to implement it, rather than just putting > off all the decisions for another year. > > Regards, > -- > Rowan Collins > [IMSoP] > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e016283260de6fc050f36b748--