Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99465 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17903 invoked from network); 9 Jun 2017 00:13:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jun 2017 00:13:32 -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 209.85.128.173 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.128.173 mail-wr0-f173.google.com Received: from [209.85.128.173] ([209.85.128.173:36657] helo=mail-wr0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/4A-27119-728E9395 for ; Thu, 08 Jun 2017 20:13:30 -0400 Received: by mail-wr0-f173.google.com with SMTP id v111so24261416wrc.3 for ; Thu, 08 Jun 2017 17:13:27 -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=MSN60IKs+RrbBJ90Bh12aKYsk1cTHHZj6XsA6jf6qCM=; b=xMlsljQP23W/BRhgJnYABrbfXASDzfiN+yH12Vdl/PtQc/5YneYemrBDJCWU9a/Yxx emadQnrb6wDEXNuqPTz0k1GmNSmzNJgEGmlI/WZjjrjWeuAzQki/St4dlHIP1ZtAtEju WvEdMxXTSgD3nm/cmhUG+DpQpG9CWOWxHWKc3iVtl5+IltxJuFkN6esFDu9XaMxYuVSY yD87WEu8cSmZRvkuvez0Ng3K9ybLFezESzr3HmJO+7nCrZuBzAazatReJJDs76D6HTVG nu1H+SX0XS4EHRYm5UqDmmPnwmR4mabAj03HgbM5cKa8SGQoHmKfVlQFNxrjZJUre90E 1MUg== 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=MSN60IKs+RrbBJ90Bh12aKYsk1cTHHZj6XsA6jf6qCM=; b=Ins00HdGtGHOZgUzKQdqCiInzlftep6V5rFrtSLsCpovJ/AzdEG0T6OLtLDAzHL0QR lLXpbWuJhjs0/YkvUMHA3ncTen0hVxEfNHfbDKu3+ok7FA54FSaT3kh70HatmNkGHmB5 q6wCAlDCDyyVGQKUp1vV7OWv6Y1SgXAHe7wP3Q8lET9ewOuzKX8MlCJicXpFxWb2ayKv XpgJbfssImILxuWdjbXbFt8vdYmrZIE/OHg4alBzH2LvJMNLIcrei+sV4keJYRILrVAk 3UHOBUPs1NNzS03rHsTynABTmpE5d7r2d8scRBJ+O8rg4+YaNgLLw81XludIK6F4TQ8k ZhjQ== X-Gm-Message-State: AODbwcDsDBCvzCRCGMniYFZnoW/X0QaBr4naxXxzv/2HHViOdI6Y/lD+ IybKimSeqIc3D93sEN0yRi3azLZMdqw5 X-Received: by 10.223.132.39 with SMTP id 36mr26605748wrf.179.1496967204420; Thu, 08 Jun 2017 17:13:24 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.223.172.226 with HTTP; Thu, 8 Jun 2017 17:13:23 -0700 (PDT) X-Originating-IP: [2604:2000:dd18:cb00:6c58:4330:34f4:b5d8] In-Reply-To: <46143e7c-ef75-7c05-eaa9-98c8f3b405f1@telia.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> <46143e7c-ef75-7c05-eaa9-98c8f3b405f1@telia.com> Date: Thu, 8 Jun 2017 20:13:23 -0400 X-Google-Sender-Auth: A_kqjBzoRw7JPXT3MpcvoBmat1k Message-ID: To: =?UTF-8?Q?Bj=C3=B6rn_Larsson?= Cc: Rowan Collins , 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 4:56 PM, Bj=C3=B6rn Larsson wrote: > You have a good point here! I think one then should evaluate > both the implementation, which apparently is not so great and > how the feature itself has been received. > > I mean is it heavily used and what is the user feedback? E.g. are > users happy with the syntax and how do they use it. > As I already mentioned, the HHVM implementation is hackish, but the reception around Facebook about the feature itself was SUPER positive. Particularly when paired with collections. $someDict->map($v =3D=3D> $v * 2)->filter($v =3D=3D> $v % 3); just reads way cleaner than the old expressions. FWIW, (with my HHVM hat on) we'd also discussed that we wouldn't be too bothered if PHP went with a different syntax as it would ease pressure to match behavior on a feature that's already widely deployed internally. So don't worry about picking a symbol based on what Hack uses. Pick what makes sense for PHP. For my part, I care FAR more that we get short closures than what gymnastics my fingers have to partake. -Sara