3 ms·
> Chapter 04: Currying Allowing a chain of fat arrows and parentheses-free parameters was one of the nicer choices they made for ergonomic functional programmi
by aranchelk 4y ago
> Chapter 04: Currying
Allowing a chain of fat arrows and parentheses-free parameters was one of the nicer choices they made for ergonomic functional programming — being able to concisely write:
const add = x => y => x + y;
Ends up looking similar to Haskell type signatures.