Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98055 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36009 invoked from network); 30 Jan 2017 21:42:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2017 21:42:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-lists@scopey.co.nz; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php-lists@scopey.co.nz; sender-id=unknown Received-SPF: error (pb1.pair.com: domain scopey.co.nz from 209.85.220.180 cause and error) X-PHP-List-Original-Sender: php-lists@scopey.co.nz X-Host-Fingerprint: 209.85.220.180 mail-qk0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:36304] helo=mail-qk0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/4C-51557-A33BF885 for ; Mon, 30 Jan 2017 16:42:19 -0500 Received: by mail-qk0-f180.google.com with SMTP id 11so144263174qkl.3 for ; Mon, 30 Jan 2017 13:42:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scopey-co-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=30Zp2247aXL2FfhEHdSS4bnh3/IT5ekcV8O32S/O3PM=; b=T+jjbgVdbUPMsymXJSc3YuSb68rLN9qM8nw5l94/aFSL9ox5qenWoOWbRJZJHqDuJH Le29gohpVda1dS86fvu0wmuFx3IBGDug75iYBOPmn6p0a19wjLe6o/1n4t+VwpFx/sca VduXPBKAhSh/edVei6V4RVZboSVH2GtGi1CBlrzCGbj2hH+2vA81d0G991x7bDGFdesb QvIrbvL+f5EcJ5/lKBTZ8bC9siI0dKtQX2T1UPwDRXjj9Dsin8/pLoy64uLeOleYBd7b FBMJM8uh6oTZVN5+lcRh9RqbWS3POk+X1Z0UTZwzWvVxGKaj0R4DBWWIPmQpHwQ+BJeW urmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=30Zp2247aXL2FfhEHdSS4bnh3/IT5ekcV8O32S/O3PM=; b=Hnlm7D70FoRLjH+raaK9wh/Zo/5UrrWjPC3ogOl1QGNgyOb9Aqv3CDlk31o+PnN7D5 lkS2oVazqkkiVjIehe06yiKb/xP9uY3roEOKFcwdTtNKYdedxbgA8b2Yei6fc/YA7ysu oaVhYsR8XNiA1fTZeX6bZS2U51MJiiTbEhutfNY8uDXsPCvzVdbcOYJ7SO5wOPNCj9fA HaQVoQH/dSEYOjWQptIFW7D2Cwb57HNCnWpSF6vpeTUh3+7hqQM2F2z8e3Lk6dPxhsKY eAc447cjwIsdVX3zZ2+ty5coyrdXet3tjuv9E1yVpWSTscmc6Wqy7DmHPty+P88rUsWF SU1A== X-Gm-Message-State: AIkVDXKVCcd1KL/LrSoLz1JL4pCIow5LOhRjkVrnftl5qK0TFM3D9qg4e7KhBWfO3F4RTuRQZ3/euijOmm8vEg== X-Received: by 10.55.142.7 with SMTP id q7mr25780456qkd.104.1485812536252; Mon, 30 Jan 2017 13:42:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.181.12 with HTTP; Mon, 30 Jan 2017 13:42:15 -0800 (PST) X-Originating-IP: [210.48.49.168] In-Reply-To: References: Date: Tue, 31 Jan 2017 10:42:15 +1300 Message-ID: To: Niklas Keller Cc: Levi Morrison , PHP Internals Content-Type: multipart/alternative; boundary=94eb2c084c9a6d4cdb054756b06e Subject: Re: [PHP-DEV] [RFC][Discuss] Arrow Functions From: php-lists@scopey.co.nz (Guy Marriott) --94eb2c084c9a6d4cdb054756b06e Content-Type: text/plain; charset=UTF-8 On Tue, Jan 31, 2017 at 7:42 AM, Niklas Keller wrote: > 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 > > > > > Looking good. Really excited for something like this in PHP. Just a heads up, the section in the introduction that refers to other languages having similar syntax still has a TODO in it. I agree that some references to other languages' implementations (ES6 comes to mind) would be a nice addition. Awesome work, Guy --94eb2c084c9a6d4cdb054756b06e--