Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99263 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30942 invoked from network); 30 May 2017 12:45:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 May 2017 12:45:10 -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 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:38231] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/90-34073-6596D295 for ; Tue, 30 May 2017 08:45:10 -0400 Received: by mail-wm0-f48.google.com with SMTP id e127so99326257wmg.1 for ; Tue, 30 May 2017 05:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=ptGM/RQPNBhdEhCCewCD9cSGG93TI2YHHpmWNac6jzU=; b=JEAFGHuAoY5z5MwwepdDwHNclXDYD5ctgLu7bbQQiEzUvmd1oXpavLLWwY+V1Hkitl pYhX2jolVm+OZEnB/kKXP1QNuie7zqPL4FLeqUWK3VtTGbFDv2Et6d5O28d1SKXeEupe ac8LcLxWMFzJvuepMPOSYPTJIb49S6C91wzUnOApfFLXGRtNrG2ZU1rdvwtA5UfKp83L pt89OAKTJoiEnebx73K8OnoRaRweiSoMeOkiQmsHK7HRv3AnUTADyMGPsggFQo2kE0wp RiFRm7eL/qNwvvcwJ73MsLVJN4T32kR8uniWBCEybLgISLd29/oeXE3KVjsnuOgaJKwz Nadw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=ptGM/RQPNBhdEhCCewCD9cSGG93TI2YHHpmWNac6jzU=; b=Xi5OKLtJJwUKdRF7d0xSAvSiHuQn3u6aQgYVFIiko9312uhlB4tf0xq8mF81nF+bwc vYvh5bOD9Fo8fxunQF30F79yft/4x75aF7ZyhthvzBHUBGiR4Wg2xiQ00E4JtVNutLi5 beM2YuJVWFipNnrJEOHgbdf60SEHLkqEj3TxlerEg41g9DXhDE/rSvUc5N1L3zFQhwwS TQE6wDvvbS+OlEsFELqfiAUp3V24Y4KPmY7D8EzcJoyTqOmKiapKKSvH3ARHLQU70zG2 fHn0xEY3R4wZ3S3zGAxig0xhVrcidIIsyvjRN/CJ9U20lHk4EzZgTpHlqOztA9j0yeh1 5MsA== X-Gm-Message-State: AODbwcDu9ut+SekyxBLO5WSakQIUVPGwXkLWI1Q6A0nRR14XoYO1Rrgx j/g4l+/u7siN2tMhEWA= X-Received: by 10.223.162.150 with SMTP id s22mr16183526wra.88.1496148306346; Tue, 30 May 2017 05:45:06 -0700 (PDT) Received: from [10.177.105.175] (92.40.249.58.threembb.co.uk. [92.40.249.58]) by smtp.gmail.com with ESMTPSA id e73sm26792106wmd.1.2017.05.30.05.45.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 May 2017 05:45:05 -0700 (PDT) Date: Tue, 30 May 2017 13:45:02 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: <97bb5051-6413-b78a-e981-ad8858caec4c@gmail.com> <8d4ee559-1ad2-4d65-ae4f-207e59f056e3@Spark> <61DC1C28-CAF2-45F4-8D9F-A66BEA2E90B1@gmail.com> <3942113e-f83a-444f-bbc2-462c70d67c65@Spark> <20db9b97-5313-057d-db56-920ccb758558@telia.com> <877970f0-b22d-a8b9-9ad4-6fc9139a9b34@telia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: <2E673BA9-F31C-48C2-B6D7-0AE8DC6DDF51@gmail.com> Subject: Re: [PHP-DEV] [RFC][Discuss] Arrow Functions From: rowan.collins@gmail.com (Rowan Collins) On 30 May 2017 09:30:02 BST, "Bj=C3=B6rn Larsson" wrote: >I presume then that the options discussed earlier "|params| =3D> expr" >and "lamda(params) =3D> expr" are of the table=2E I'm a fan of "lambda(params) =3D> expr" myself, because unlike "fn", it ma= kes it clear that this is a *new type of definition*, not just shorthand fo= r an existing anonymous function=2E Of the other options, the C++ style als= o offers this, because you have to add the =3D or & to turn on the auto-cap= turing=2E And to reiterate from previous discussions, it is the automatic capturing = that is the biggest=E2=80=8B new feature here; it's a radical departure fro= m every other scope in PHP, for better or worse=2E Regards, --=20 Rowan Collins [IMSoP]