Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98045 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13477 invoked from network); 30 Jan 2017 17:55:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2017 17:55:12 -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.43 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.43 mail-lf0-f43.google.com Received: from [209.85.215.43] ([209.85.215.43:34754] helo=mail-lf0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/58-51557-FFD7F885 for ; Mon, 30 Jan 2017 12:55:11 -0500 Received: by mail-lf0-f43.google.com with SMTP id v186so198643518lfa.1 for ; Mon, 30 Jan 2017 09:55:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=0Oys9zYmxcrQ9JlRTtYp4M9/Oe3eBkTqRGcYKAbA7Ec=; b=X3n2mcbXBO5HgHdbq5K69hSoqp5yHIiu9DEsqstffJujKuwRbSTOpIawlh1M5AGmkL pvsH1BcywOfpQ9lFLeRZaU8+RXor6/o/S0Ih1K8lCzFnjb67Ys/n0SrZomj/NC7Nk9a5 9ORv97/x7H1+9/WPQ8MNvQm4LNIXKk9qnfJEiFDAk3+ZR9j+6BLsA1tWr3R1zwTienLt 3ZiXbDUJCdcgcRItHsPxzwO0PCs2qoanOZRF4Xw3Bt9MzeSpAt0LKZPvCX4bmYBQ/7ZP sdLPZPGk8fRh+ZdTFlreviJFm0zl0jn5dyNDiaS9FcngQVIxmtRmHuedA1Q3G2DNiTVv +gKw== 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:from:date:message-id:subject :to; bh=0Oys9zYmxcrQ9JlRTtYp4M9/Oe3eBkTqRGcYKAbA7Ec=; b=RQ+ADg6YFKf+QoDILwCGWGX326Pamx2BMVx2a2N1u5McLnDykYt7kAbddqd69ivCEP gSuk5cNk0ANYd5XvNvPnLhuL1NXfYF3S4w+fss4nVuXri098yWcFdBi18QZL/+aJ6EvJ P5XBlcshcJefy028MUUI1g7e3utA+5SijmRJISaCUwZu63pUEAOEhTVwB8iUndV1htOV PMQ3XSdraajLK+BW/qwaQuNXV2VWQ1+20FRc9tmnmFZ8rfqB2qVqImadwPIi7q65dY1X FIy+9VfJXsnH5mIpwc/FW5m15KJU1RUYWXQf3IIcZrQSIAdwiZO+JMydH+ma/oj1Sb+1 kTyA== X-Gm-Message-State: AIkVDXJjIhIrV0K4btzGZG7FP0HN4JvNWnSiNEWH/ZhCIG7syYFgm7V63p3iKatvZAcH5qSaXagmA35e+G6pJw== X-Received: by 10.46.71.132 with SMTP id u126mr7920071lja.43.1485798908306; Mon, 30 Jan 2017 09:55:08 -0800 (PST) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.25.151.139 with HTTP; Mon, 30 Jan 2017 09:55:07 -0800 (PST) Date: Mon, 30 Jan 2017 10:55:07 -0700 X-Google-Sender-Auth: xLxyA-_3fkRV-X23JJ5vdjKsd7s Message-ID: To: internals Content-Type: text/plain; charset=UTF-8 Subject: [RFC][Discuss] Arrow Functions From: levim@php.net (Levi Morrison) 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