Hi Levi,

On Tue, Jan 31, 2017 at 2:55 AM, Levi Morrison <le...@php.net> wrote:

> This RFC proposes syntax and semantics to simplify this common usage to:
>
>     fn($x) => $arr[$x]
>

Could you explain why fn() cannot be removed like ES2015.

Rowan's syntax sounds attractive to me if fn() cannot be removed.
fn($x => $x * 2)

Or since many of us like "function", it could be

function($x => $x * 2)

I don't have strong preference, but some may have.
I suggest separate vote into 2 votes.
 - Introduce arrow function
 - Prefered syntax

Regards,


--
Yasuo Ohgaki
yohg...@ohgaki.net

Reply via email to