Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71951 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89641 invoked from network); 1 Feb 2014 22:55:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Feb 2014 22:55:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.171 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.216.171 mail-qc0-f171.google.com Received: from [209.85.216.171] ([209.85.216.171:59063] helo=mail-qc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/5A-30967-E4B7DE25 for ; Sat, 01 Feb 2014 17:55:11 -0500 Received: by mail-qc0-f171.google.com with SMTP id n7so9163365qcx.16 for ; Sat, 01 Feb 2014 14:55:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=K3dXOfBkbCQsLWIQh37LNCiEE/ajdvG8eTMSi21suhk=; b=PV9FmOHjjdghxYq/gaEMZzRDI5/SwKfPhTgq6rBUtCZpYTIo7rV4cTga8eV/fV1pwA VDc1GSEsvfgrfrpoMMsgRXMOkWDm3jWfwSdIQd/6wCGqWv7xI7GE3OSmJQVTDxFXgLd5 w+e+omqsW5NAuGUAuHkwDZph2kmUUAErk5ZBmKtTohNnRI1gk3igoR4/wJdQS5P8K5/c SrKc7xf95XkNSmtsEVVUUtXOYghfXkEjP0gd/ERy1+4uZCb9hoWLccUGV8FC6TM/TcPH WHEiilNNV4ZckJvq8LdIKF9MTYfHwt19g89An7p4JkGbPo+IamCRwEP8qCIGAgKGjnnN MeJg== MIME-Version: 1.0 X-Received: by 10.224.97.7 with SMTP id j7mr44264431qan.81.1391295308441; Sat, 01 Feb 2014 14:55:08 -0800 (PST) Sender: are.you.winning@gmail.com Received: by 10.229.240.193 with HTTP; Sat, 1 Feb 2014 14:55:08 -0800 (PST) In-Reply-To: References: <98.E0.35265.E17FBE25@pb1.pair.com> Date: Sat, 1 Feb 2014 22:55:08 +0000 X-Google-Sender-Auth: hUh6xZXxKPR5ebxRr17JW8ST-Do Message-ID: To: Sara Golemon Cc: Gordon Oheim , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [VOTE] Automatic Property Initialization From: daverandom@php.net (Chris Wright) Sara On 1 February 2014 19:53, Sara Golemon wrote: > On Sat, Feb 1, 2014 at 11:43 AM, Gordon Oheim wrote: >> On 01.02.2014 20:25, Sara Golemon wrote: >>> FYI, I'm voting "No" as I don't think >>> https://wiki.php.net/rfc/constructor-promotion was considered >>> adequately. They both seek to accomplish the same goal, but one >>> introduces conflicting syntax while the other does not. >>> >>> If we're to go with the conflicting syntax, I'd like to see a >>> reasonable argument why. >>> >> How is it conflicting? >> > Because it's different from already existing syntax (Code exists in > the wild using HHVM's version of the syntax - > https://wiki.php.net/rfc/constructor-promotion ). I'm not sure which > part you're confused about. It seems to me that there is no direct conflict here, the two are not fundamentally incompatible and could quite comfortably co-exist in HHVM (which is I guess the issue here - you want to ensure that HHVM can run pure PHP - since there is already a lot of syntax in HHVM that cannot make the transition the other way). By contrast, the HHVM syntax *does* conflict with the recent extended keyword support RFC [1], and as a passive observer to the discussion I gauged a fairly positive reaction to this conceptually, the reason it was rejected was largely because the implementation was not up to standard - maybe I misread this but still, I don't recall this conflict being brought up at the time. The HHVM syntax would also make any future implementation of something like the recent property accessors RFC [2] difficult to mix in. I love some of things you guys have done with HHVM, but I don't like the idea of the HHVM implementation of something blocking an alternate route to the same goal suggested for PHP (especially when there is no direct conflict) - otherwise we may as well just throw PHP development out of the window and let the HHVM team decide where we go. I realise I've made barely anything in the way of material contributions to PHP, but even looking at it strictly from the point of view of a user, I know I'm not alone in wanting PHP to do what PHP does, and not necessarily what HHVM does (but if they coincide, so much the better). [1] https://wiki.php.net/rfc/keywords_as_identifiers [2] https://wiki.php.net/rfc/propertygetsetsyntax-v1.2 Thanks, Chris