Re:Currying in JavaScript
by josephcsible on Sunday September 19, 2021 @12:24PM
(#28585563)
You can curry the second parameter without it being too ugly like this:
Also, I think the idea with curried languages is that you're supposed to write your functions with the parameter that people are most likely to want to curry first.
[ Parent
| on HN ]
Of course that’s the mitigation strategy, but my point is that the usual currying syntax inherently special-cases the first parameter, and in x% of the situations that’s not what you want. From a language-design point of view it just feels awkward.
Re:Currying in JavaScript
by josephcsible on Sunday September 19, 2021 @05:26PM
(#28588082)
I guess that's fair. What about Scala's _ syntax, though? Does it solve the problem?