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
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss