Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88087 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91381 invoked from network); 7 Sep 2015 10:39:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2015 10:39:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.173 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.173 mail-wi0-f173.google.com Received: from [209.85.212.173] ([209.85.212.173:36358] helo=mail-wi0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/E7-40368-0796DE55 for ; Mon, 07 Sep 2015 06:39:45 -0400 Received: by wicgb1 with SMTP id gb1so40819734wic.1 for ; Mon, 07 Sep 2015 03:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:to:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=pMEfHAGqajpBmAWRmJ2ZeLdbhCGRRfjCaCyiIT1aldA=; b=AtPdO6+Oe/AnoGAEFxJevIcEyRCLOEKf8tGnoRNyyChQ8PsxGECxbFm4G8jv9IAAEI qnLvqpirbwGQRJolcoYtirN+Nr47pplSeDR09p8f9ferqwsBoa63MQHDNWkUpE5Jw/X+ W00a1Pv4B7EoEoJVPfoY293Gf3LwjRuuatmW3J1ZYGLrin9ilEPx2Y7W4WfbPJINoHR1 3fQWnBJVJPd2V9dN2EyESEU6FI0Th+x5c0cKCVqCQCXijqOR7FULTKSRiZVdToAtUTBr SgeVI/3bSgwT7do04rUDe/jE9eUGT/K9StMdnK2LpNcoDTiSLULONobk4SYCNXkijOsD wEfA== X-Received: by 10.180.87.71 with SMTP id v7mr33715997wiz.74.1441622381845; Mon, 07 Sep 2015 03:39:41 -0700 (PDT) Received: from [192.168.0.134] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id v6sm19334642wjf.13.2015.09.07.03.39.40 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Sep 2015 03:39:41 -0700 (PDT) References: <61.90.26858.306BCE55@pb1.pair.com> <55ED636D.8010808@gmail.com> To: "internals@lists.php.net" Message-ID: <55ED6932.7080107@gmail.com> Date: Mon, 7 Sep 2015 11:38:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] [Discussion] Short Closures From: rowan.collins@gmail.com (Rowan Collins) Anthony Ferrara wrote on 07/09/2015 11:23: > Being completely fair, doesn't this actually make HackLang a great > test-bed for PHP features? If they implement something, and people > hate it/it sucks, boom. But if people love it, it's a no brainer for > us to "steal". > > I don't think we should blindly accept anything because it's in hack, > but the fact that it's there means we also shouldn't diverge "just > because". If it makes sense to copy it, why not? > > The one thing I think we absolutely MUST avoid is changing behaviour > slightly but keeping same syntax. > > For example, if we used ==> for short closures but used a different > semantic. That would be *really* bad. That leaves us with either > taking their semantics whole sale for the feature, or creating our own > syntax. That's what Bob has proposed here. > > Overall, I think we should steal outright what makes sense (I use > steal weakly here, it's collaborative). We should take inspiration > where it makes sense, and we should forge our own road where it makes > sense. > > I have not a single ounce of reservation about "giving authors of Hack > a disproportionate influence on PHP". They are not being given a blank > check, no more than any other contributor is. But we also shouldn't be > stupid and ignore what they are doing because of pride (or whatever > else). > > My $0.02 > > Anthony I agree 100% with this; you've put it much better than I did. The only additional scenario I can see is where Hack's initial definition of a feature has some problem, and rather than copying that problem into PHP, we might fix it and leave Hack to do the same when their process allows (I don't know what the BC policy on Hack is). That would be an exception where keeping syntax but varying semantics *might* make sense, if the communication between teams was clear that the semantics would be realigned later. Regards, -- Rowan Collins [IMSoP]