Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


I guess that's fair. What about Scala's _ syntax, though? Does it solve the problem?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: