alex at weej.com
Thu Oct 15 19:46:31 UTC 2015
Too late, `add(a)` already returns `a + undefined`.
No reason why `const add = curry((a, b) => a + b)` couldn't work though?
Arrow functions have a length property AFAIK.
On Thursday, 15 October 2015, Yongxu Ren <renyongxu at gmail.com> wrote:
> How about making arrow function curry by default?
> const add = a => b => a + b;
> this will only works in case
> But it won’t work if you do this
> If we could let arrow to work for both
> add(a)(b) and add(a,b)
> it will release the full power of functional programming and allow us to
> write code like in OCaml, F# or Haskell
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss