Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4921 invoked from network); 31 Jan 2017 13:40:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2017 13:40:09 -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:56612] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/A6-51557-6B390985 for ; Tue, 31 Jan 2017 08:40:09 -0500 Received: (qmail 53272 invoked by uid 89); 31 Jan 2017 13:40:02 -0000 Received: from unknown (HELO mail-wj0-f169.google.com) (yohgaki@ohgaki.net@209.85.210.169) by 0 with ESMTPA; 31 Jan 2017 13:40:02 -0000 Received: by mail-wj0-f169.google.com with SMTP id b20so14106329wjs.2 for ; Tue, 31 Jan 2017 05:40:02 -0800 (PST) X-Gm-Message-State: AIkVDXLZpbG1RnGSX56Y3NWtg0htJ5d2rzvWnpgMX3aKDgopdyjzMdt4Dlb1Aa0G75MQ7k0BCHS5Vn9opBjkjA== X-Received: by 10.223.177.18 with SMTP id l18mr23885584wra.96.1485869995357; Tue, 31 Jan 2017 05:39:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.195.12.8 with HTTP; Tue, 31 Jan 2017 05:39:14 -0800 (PST) In-Reply-To: References: Date: Tue, 31 Jan 2017 22:39:14 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Levi Morrison Cc: internals Content-Type: multipart/alternative; boundary=94eb2c1cd4b44183970547641110 Subject: Re: [PHP-DEV] [RFC][Discuss] Arrow Functions From: yohgaki@ohgaki.net (Yasuo Ohgaki) --94eb2c1cd4b44183970547641110 Content-Type: text/plain; charset=UTF-8 Hi Levi, On Tue, Jan 31, 2017 at 8:38 PM, Yasuo Ohgaki wrote: > 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. I guess current PHP parser has to determine token type as they processed. So distinguished keyword is needed. I don't have problem with the proposed syntax. Large change is not preferred and current way should be faster. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --94eb2c1cd4b44183970547641110--