Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98047 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18787 invoked from network); 30 Jan 2017 18:42:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2017 18:42:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.221 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.221 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.221] ([81.169.146.221:30994] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/39-51557-3298F885 for ; Mon, 30 Jan 2017 13:42:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1485801760; l=4807; s=domk; d=kelunik.com; h=Content-Type:To:Subject:Date:From:In-Reply-To:References: MIME-Version; bh=3jbL8ucH/sVjgitvGwDzIPgMDrFmf/JXrM5DS1vzpQQ=; b=sg8zREqiKFEup8/aG6x7E2C0KqCeac8xaKphF5VIDYCWChwEXhAtLpJZp5Xahz8gLt Nyt1F/Pg0YMsQlMW8Mk2fmwzSIrxFOuzRWlaSiYpJUHBx8LtNyZhHlOp4KAhlbU52Oem WreHNprzkkYZX5K8I6e9Hbo5rfNHZvtjq0EoI= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoNJBqD/tMc= X-RZG-CLASS-ID: mo00 Received: from mail-qt0-f174.google.com ([209.85.216.174]) by smtp.strato.de (RZmta 39.12 AUTH) with ESMTPSA id k0b15ft0UIge3fq (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Mon, 30 Jan 2017 19:42:40 +0100 (CET) Received: by mail-qt0-f174.google.com with SMTP id x49so211395901qtc.2 for ; Mon, 30 Jan 2017 10:42:40 -0800 (PST) X-Gm-Message-State: AIkVDXKVvMSooxRGwvu3yFFgX0wUAdKmfezDXe9CVg5MMrVEIM480CqhHnBKM2ctn6GnT93rPzNyUlDnqr23zA== X-Received: by 10.200.34.12 with SMTP id o12mr21419132qto.93.1485801759741; Mon, 30 Jan 2017 10:42:39 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 30 Jan 2017 18:42:29 +0000 X-Gmail-Original-Message-ID: Message-ID: To: Levi Morrison , PHP Internals Content-Type: multipart/alternative; boundary=001a11404e3218bef70547542ed2 Subject: Re: [PHP-DEV] [RFC][Discuss] Arrow Functions From: me@kelunik.com (Niklas Keller) --001a11404e3218bef70547542ed2 Content-Type: text/plain; charset=UTF-8 Levi Morrison schrieb am Mo., 30. Jan. 2017, 18:55: > 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. > https://3v4l.org has a feature branch for arrow functions, you can find it in the preview select box for playing around and in the RFC tab after a full execution. 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11404e3218bef70547542ed2--