Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98135 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62298 invoked from network); 3 Feb 2017 17:37:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2017 17:37:38 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.41 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.41 mail-lf0-f41.google.com Received: from [209.85.215.41] ([209.85.215.41:33751] helo=mail-lf0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/92-38491-FDFB4985 for ; Fri, 03 Feb 2017 12:37:36 -0500 Received: by mail-lf0-f41.google.com with SMTP id x1so13934294lff.0 for ; Fri, 03 Feb 2017 09:37:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=qAQmKbwsJUfWclXTGnZLAc+AREufHgRiWS0O2CU/1oQ=; b=vVhMeRtytqNDGBxl/pFyuVntZ5YZxLc5z+4fH8SMiPWJjUBDOCU6D5K0qvtf9DWpje QblzEyJiGWNRpBF0Z3xkmgxXzTZMMte2mUhNmeFu2S8fnak3KT2yKDpEBuy0NiW9RUjk bpOtdoXD5eN65IrdxIlgYXPvr/258xXgiGH3i+Q9vCiIZw+rvE4nlIvqZE3pqFsvQBvz SPhyQdzLjPhEaoMWo1bZM/jMyolxb/r2dRzqTzPGw1fu4zJwswGwxx4jUrnNul1251p2 VIYYyRwZposKOZ7bMCTEc44FfA+Gm0UYRxS6FBEnwcDsrt1HcrHS2rsG+8rP63VQO9zS 1EWg== 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; bh=qAQmKbwsJUfWclXTGnZLAc+AREufHgRiWS0O2CU/1oQ=; b=nqHSq59dJ8OjFtQvvn1fPPeFXZVfzWj4p074PwdvDDB0I13dg+OYCiVUzc2X+G3O3x mOTzYu5rjfOc4nIs1WbM6Jtt8WlT5l/irkfpSHF+9O0rGah/rLuugyLHhJSbD38JKF0/ ZhI5tQTQqB5WybNZdxcPbbR9qSsLMA1kqq8h20kV/aaOU+ZFpBdLF3thbTPHfZKaqaV9 sQ5ezSo5oLnvwAOwHerfbhYuAqMRH8iVTOmrbSZAAKz9S9jKNB0dONJO6soxX/sGs26G XW3Es2IMpc8FH3BKNO9IsFRd1U0sbrkpAySG7JvIzBpP52+Xcm8K8Ad6zTr/nJfLmkP1 nvcg== X-Gm-Message-State: AIkVDXLlrFkLHVW9ED/EOdmiJtvdffQwokfxFMUqVFRPmXShN3TkHyYOyAGDiGQiCSzAvAk8QqFMWE8QZBbbTA== X-Received: by 10.25.75.79 with SMTP id y76mr5791184lfa.143.1486143451817; Fri, 03 Feb 2017 09:37:31 -0800 (PST) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.25.151.139 with HTTP; Fri, 3 Feb 2017 09:37:31 -0800 (PST) In-Reply-To: References: Date: Fri, 3 Feb 2017 10:37:31 -0700 X-Google-Sender-Auth: pvT-J2kLFoEOrpyzvstHS9fk48k Message-ID: To: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [RFC][Discuss] Arrow Functions From: levim@php.net (Levi Morrison) On Mon, Jan 30, 2017 at 10:55 AM, Levi Morrison wrote: > Bob Weinand and I are happy to announce that the [Arrow Functions][1] > RFC is moving into the public discussion phase. We have been > collaborating on this RFC for many months now and finally have a > proposal we are happy to discuss in the open. > > Here is an example of an existing closure: > > function ($x) use ($arr) { > return $arr[$x]; > } > > This RFC proposes syntax and semantics to simplify this common usage to: > > fn($x) => $arr[$x] > > More details are in the RFC. The [implementation][2] currently has no > known issues and is ready for you to download, build and test, which > we encourage you to do. > > We look forward to a productive discussion period and are happy to > answer questions. > > For historical purposes, the revision of this RFC is currently at > [1485798604][3]. > > [1]: https://wiki.php.net/rfc/arrow_functions > [2]: https://github.com/morrisonlevi/php-src/tree/arrow_functions > [3]: https://wiki.php.net/rfc/arrow_functions?rev=1485798604