3 ms·
You can curry the second parameter without it being too ugly like this: half = (`div` 2) Also, I think the idea with curried languages is that you're suppos
by josephcsible 5y ago
You can curry the second parameter without it being too ugly like this:
half = (`div` 2)
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.
- layer8 5y agoOf 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.
- josephcsible 5y agoI guess that's fair. What about Scala's _ syntax, though? Does it solve the problem?