Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88085 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87684 invoked from network); 7 Sep 2015 10:23:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2015 10:23:54 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:37742] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/27-40368-9B56DE55 for ; Mon, 07 Sep 2015 06:23:53 -0400 Received: by wicfx3 with SMTP id fx3so78771684wic.0 for ; Mon, 07 Sep 2015 03:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=SUDI1dJTc7HUizzEwyxHj5A5TW3i/kTgh9e3AdrjEAc=; b=dCuY33Smdu1vVjaGP5fIvTHXtmKvc22oYW4qF9sliaPoKbx/GN3FlPF/w+VRL7AddR N8YTHFaB+Ys5J2ENEgy3/UFfjyVZkvw4Z1fjxkOeFdI/JJZzsRCnZR36+WXdBGi3VX8y m1ETIM3tMb1AY1mOCDHtNaCWyNPv5NN8U5/bWgg8yi6o3ch/ZYmhDXN0pK4tU0DfBBoZ MIFpttV+c3cyXhtm7D8CbFLovK+MLRhoK7IaEO571kRldEbTbDe68aRNIKWsycJYnTek fW80OlPXZIU7w7UIzgXARnRzNfLTLetXA2ogFb4J4Fi3Kg1wt5xz7re0HUcl/vUjvX2D ko7w== MIME-Version: 1.0 X-Received: by 10.194.21.230 with SMTP id y6mr36871310wje.132.1441621430534; Mon, 07 Sep 2015 03:23:50 -0700 (PDT) Received: by 10.28.25.196 with HTTP; Mon, 7 Sep 2015 03:23:50 -0700 (PDT) In-Reply-To: <55ED636D.8010808@gmail.com> References: <61.90.26858.306BCE55@pb1.pair.com> <55ED636D.8010808@gmail.com> Date: Mon, 7 Sep 2015 22:23:50 +1200 Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC] [Discussion] Short Closures From: ircmaxell@gmail.com (Anthony Ferrara) Rowan On Mon, Sep 7, 2015 at 10:14 PM, Rowan Collins wrote: > Andrea Faulds wrote on 06/09/2015 22:54: >> >> Also, it would be nice if PHP and Hack don't diverge when implementing the >> same features, unless there's a particularly good reason... it's not very >> kind to people who use both languages. > > > While I agree with the sentiment of them not diverging, the problem is that > it gives the authors of Hack a disproportionate influence on PHP. At the > extreme, if someone wanted to push through their version of a feature, they > could get it released in Hack first, then raise an RFC citing Hack > compatibility as the reason for the design decisions. (Important: I am not > accusing anyone of doing this.)t, IMHO. 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