If I understand your question correctly, your asking if fat arrow functions could be auto curried? I think this would be great, but anything using ...rest arguments could never be curried without finalization.
On Thu, Oct 15, 2015 at 2:58 PM, Yongxu Ren <renyon...@gmail.com> wrote: > Sorry I actually didn’t mean to use this for currying > ``` > const add = a => b => a + b; > ``` > This was directly copied from Mark's example, I was thinking about making > the non-nested arrow functional. > My idea is if you define > ``` > const add = (a,b) => a + b; > ``` > you will be able to use either ```add(a,b)``` or ```add(a)(b)``` > > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss