let function

Steve Fink sphink at gmail.com
Tue May 19 16:24:08 UTC 2015


On 05/19/2015 12:23 AM, Alan Schmitt wrote:
> On 2015-05-19 06:09, Bergi <a.d.bergi at web.de> writes:
>
>> Alternatively just use a single equals sign with a parameter list:
>>
>> let f(x) = y
>> let f() = y
> This looks very nice indeed.

That visually collides with destructuring for me.

let [a, b] = foo();
let {a, b} = foo();
let f(a, b) = foo(); # Very different

I almost expect that last one to use f as a custom matcher of some sort, 
given the previous two.



More information about the es-discuss mailing list