let function
Bergi
a.d.bergi at web.de
Tue May 19 04:09:35 UTC 2015
Brendan Eich proposed:
> let f = (x) => y;
>
> could be shortened to
>
> let f(x) y;
Too confusing imo. I'd like to retain the fat arrow that effectively
communicates the callability:
let f(x) => y;
It would work fine without parameters as well:
let f() => y;
let f => y;
Alternatively just use a single equals sign with a parameter list:
let f(x) = y
let f() = y
(which almost looks like Haskell, hehe).
Bergi
More information about the es-discuss
mailing list