Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82855 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62928 invoked from network); 16 Feb 2015 15:42:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2015 15:42:00 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:55174] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/C3-36518-6CF02E45 for ; Mon, 16 Feb 2015 10:41:59 -0500 Received: by mail-we0-f170.google.com with SMTP id q59so29968363wes.1 for ; Mon, 16 Feb 2015 07:41:56 -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=4iVZK1Y69yIim+66gmXxFJGlIx5jVLOIgpGwEqP/uKc=; b=DOhzBekc1iOosa9TRkg08eT2BWnF4dviAxg5YeMEF6g78Onn+oncBJHIjnE0gvTMFW 7RWRz165fN0kgOzeUI954X/1jhXGokQREwHmlJjYMrFc/45MGqStaEYh/bUjCOfj/cR6 9QEKT6A7Drptbm8kjp61/WqI8/Jo4oeuCUm51rt+KX4WrQg13aPeY2dxorXot7rDahXB 1+tL/Jo70TtRWdYI10NZjDFvjnncvI0tCx3dDTXimdjYsXeVJ2GSHszl/TfP8W1O/3Cp V0wA4xbhtJBquDMhvM6VnGyFXek80QxAZKYhy0oihHNN5TqyTHLwOZglNKw3BoHOicKZ sbVA== X-Received: by 10.194.121.136 with SMTP id lk8mr4726776wjb.49.1424101316090; Mon, 16 Feb 2015 07:41:56 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id gm2sm10109055wib.5.2015.02.16.07.41.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Feb 2015 07:41:55 -0800 (PST) Message-ID: <54E20FC0.3060104@gmail.com> Date: Mon, 16 Feb 2015 15:41:52 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Annotations in PHP7 From: rowan.collins@gmail.com (Rowan Collins) 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]