Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88651 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81753 invoked from network); 2 Oct 2015 23:17:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2015 23:17:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-vk0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:36181] helo=mail-vk0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/6E-23989-2801F065 for ; Fri, 02 Oct 2015 19:17:22 -0400 Received: by vkfp126 with SMTP id p126so68943935vkf.3 for ; Fri, 02 Oct 2015 16:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lGKsqdiHrWRPumlvGmsgqIuTWm1o/i4/eN93uJmkSvs=; b=NXINoEKh/GvGyON5V1q89mgoaoT2YfutaV8gkI/w4gx01mbaHxLvozoqe4DDkcj2Fn n2qatfmpRbYYQyqZVw+CNExtgLCNnkkfcPi68apebY1o9ettxIAXgErzhv6Kn67Na06I Sj3WVponf4BY30e2w4Iz4wRX2/Nu1lYGOQzEnV+Lx7R0AXvJUPpwI7Lsw9aL0lL70h95 D0JFmyIEcvIUmt7Q92ry/WsIfiytmaCLKGohYbHAfk9VlmfvG4IbhhkJwYsshQwc/8XH iLJp2YjCcnKV0F0NQGjWhnljXUuXkrGXLvbIo77nhKwlSlNj2NKe+OOQYGLnVEXV7yaU 2wxA== MIME-Version: 1.0 X-Received: by 10.31.8.19 with SMTP id 19mr10648611vki.16.1443827839386; Fri, 02 Oct 2015 16:17:19 -0700 (PDT) Received: by 10.31.41.205 with HTTP; Fri, 2 Oct 2015 16:17:19 -0700 (PDT) Date: Fri, 2 Oct 2015 17:17:19 -0600 Message-ID: To: internals Content-Type: text/plain; charset=UTF-8 Subject: [RFC] Arrow Functions From: morrison.levi@gmail.com (Levi Morrison) I messaged the list about this feature before I had the RFC written up for it. The RFC[1] is slightly different from what I proposed in the previous thread, so please read the RFC to make sure you understand what is being proposed before replying here. Here's a small example: $y = 10; $result = array_map(function($x) => $x + $y, [1, 2, 3]); // $result is [11, 12, 13] Thanks for people who have participated in conversation so far, as well as those who participated in Bob's short closures proposal as well. [1]: https://wiki.php.net/rfc/arrow_functions