Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98070 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84420 invoked from network); 31 Jan 2017 11:39:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2017 11:39:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:56058] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/A2-51557-08770985 for ; Tue, 31 Jan 2017 06:39:46 -0500 Received: (qmail 34294 invoked by uid 89); 31 Jan 2017 11:39:41 -0000 Received: from unknown (HELO mail-wm0-f42.google.com) (yohgaki@ohgaki.net@74.125.82.42) by 0 with ESMTPA; 31 Jan 2017 11:39:41 -0000 Received: by mail-wm0-f42.google.com with SMTP id r141so75225894wmg.1 for ; Tue, 31 Jan 2017 03:39:40 -0800 (PST) X-Gm-Message-State: AIkVDXJzeaPcRhWkahLQ9v7NzR1EzTL5rusAAgWE9gA8H1M1qBLUfkTfh/6Csawy0NpRLmd170gcOl+Fwihx5A== X-Received: by 10.28.13.131 with SMTP id 125mr17646955wmn.122.1485862774140; Tue, 31 Jan 2017 03:39:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.195.12.8 with HTTP; Tue, 31 Jan 2017 03:38:53 -0800 (PST) In-Reply-To: References: Date: Tue, 31 Jan 2017 20:38:53 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Levi Morrison Cc: internals Content-Type: multipart/alternative; boundary=001a113eb392d67c0b05476262fa Subject: Re: [PHP-DEV] [RFC][Discuss] Arrow Functions From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113eb392d67c0b05476262fa Content-Type: text/plain; charset=UTF-8 Hi Levi, On Tue, Jan 31, 2017 at 2:55 AM, Levi Morrison wrote: > This RFC proposes syntax and semantics to simplify this common usage to: > > fn($x) => $arr[$x] > Could you explain why fn() cannot be removed like ES2015. Rowan's syntax sounds attractive to me if fn() cannot be removed. fn($x => $x * 2) Or since many of us like "function", it could be function($x => $x * 2) I don't have strong preference, but some may have. I suggest separate vote into 2 votes. - Introduce arrow function - Prefered syntax Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113eb392d67c0b05476262fa--