Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99457 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74640 invoked from network); 8 Jun 2017 16:22:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jun 2017 16:22:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 74.125.82.45 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 74.125.82.45 mail-wm0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:34832] helo=mail-wm0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/B3-27119-1C979395 for ; Thu, 08 Jun 2017 12:22:26 -0400 Received: by mail-wm0-f45.google.com with SMTP id x70so80883650wme.0 for ; Thu, 08 Jun 2017 09:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=Q9xqIrTjHN1OJy4ArWMxhINH+8DTWkl1YhzUPxX9hl8=; b=tBT0p2XZdII9PkrTTlzhjzpBw0GrCh1iVGZxq3PRgmcYFiCKhsf/7/WrRmx1Fd+HmS GeerkWHRXXxXzUL5EFdG1p8CBoM7RFkceI6b45yymyKO3E7W50grHp9RDBfesia22X5M W3f47DJ3VAJWVrO2EZ1mNb+7WpHfu5H8ZocOcNSkXLl8wKRpsqOcYh9tPIK+/HFIDnSG GpswBaaLofKAtBNiTpWmecPPuX8abtg8Ia7KTQSDYL9R0wqqv+By6zL3VFwwlZ9PM6FM tAP3YqKHvXAPBW7lY0z2+2XxYoxIt77RhxcnEDnZAsAs77rtqFNDVtt6vcUYN5vPkyq7 RRaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=Q9xqIrTjHN1OJy4ArWMxhINH+8DTWkl1YhzUPxX9hl8=; b=gK1Rhei0NBOs+BcMZjXA/zmc5af/bxSMyLLs0lS7mdSue6DQaI8UTXUmk6gNiCFuw+ +yUr2riOvuCw1SUz78zJxhGeng9qwZc7p+Q4duimi3ZYE9/xih6BcduKPonX1lRX3OAv 9lPCDIp4wjpRoidrVxSWFVTM7f6eputNLvJ+zDXoZD5fHnl4qHKEefGlEYQHSRg3Z8mz 5IbnbBtTcXPuMJ5T1Hpz6Q8L1UE4djmgdqnGrNj4YWtTBb1V+9NTGQUr3JT5RDdJiyCn zTCExcfeOI4Yde9hgydp0zDyK9dbITgEAJG7RiLcUsIPbjmByQwVqwYgoDBk8nQttxfw hxTw== X-Gm-Message-State: AODbwcCeV/UT9Ap4jlZ6JtqSYchKb6JW+xVilZ3gePDnhRss4Fa8qLaW Opfd3qHGc3nuM7y/s93i/mWai5gPAlG/ X-Received: by 10.28.51.73 with SMTP id z70mr4150460wmz.65.1496938942337; Thu, 08 Jun 2017 09:22:22 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.223.172.226 with HTTP; Thu, 8 Jun 2017 09:22:20 -0700 (PDT) X-Originating-IP: [206.252.215.26] In-Reply-To: <034f3ebf-95b8-a7cf-1279-77c7cf0424d7@gmail.com> References: <7eaef49b-bf60-9aa1-e812-8430164e3178@garfieldtech.com> <3F920987-38CB-42DD-888D-824430C36F14@gmail.com> <2f9e73c9-444a-11d0-459a-e261ea8a7080@telia.com> <4077c099-2247-c3c1-7dee-02a6b25f8586@fleshgrinder.com> <559b73f7-c40f-e593-f0e1-51b56210d7cb@telia.com> <2053A608-6B66-42FB-A6D7-7CC64E94DA6A@koalephant.com> <4FBDE643-1EBC-485A-A39F-7E28C5D4807A@koalephant.com> <034f3ebf-95b8-a7cf-1279-77c7cf0424d7@gmail.com> Date: Thu, 8 Jun 2017 12:22:20 -0400 X-Google-Sender-Auth: omX0ECy9WgS9cnTxzYGsyby-bp4 Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions From: pollita@php.net (Sara Golemon) On Thu, Jun 8, 2017 at 9:34 AM, Rowan Collins wro= te: > On 08/06/2017 13:33, Bj=C3=B6rn Larsson wrote: >> >> One reason >> (not the only one) for me to advocate =3D=3D> syntax is that it's the >> same syntax as HACK > > > I'm not a fan of this logic. Using Hack as a kind of prototyping-ground f= or > PHP features is fine, but since they don't have the same decision-making > process as us, we should be looking at the *result* of their experience, = not > just following their lead. It may seem a subtle difference, but to me > "because that choice has worked out well in Hack" is a much stronger > argument than "because the small team working on Hack chose it that way a > few years ago". > > In this case, there's some reason to question if it *has* worked out well= in > Hack, given that IIRC they had to hack (no pun intended) their parser to > implement it. > This is true. The bodge to make (args...) =3D=3D> expr work in HackLang isn't worthy of replicating in PHP. If we can do it without a hack* then by all means, let's not diverge the implementations. But I didn't want to maintain that lexer "is it a T_OP or a '('?" mess in HHVM, I don't wanna maintain it in PHP either. -Sara