3 ms·
> haskell-style "whitespace" to call/partially call functions That's called curryfication (named after the logician Haskell Curry) in case you don't already kn
by nestorD 7y ago
> haskell-style "whitespace" to call/partially call functions
That's called curryfication (named after the logician Haskell Curry) in case you don't already know :)
- DonaldPShimoda 7y ago> That's called curryfication I believe this is how it's called in non-English languages, but all my instructors and PL/semantics textbooks referred to this process as "currying" [0]. Which, if that's what you meant, is not what your parent comment was talking about. I believe they were talking just about syntax, not semantics, i.e., they wish in Python you could do `foo x y` instead of `foo(x, y)`. [0] https://en.wikipedia.org/wiki/Currying https://en.wikipedia.org/wiki/Currying
- gmfawcett 7y agoActually, that's a common misconception. If you're calling a function with a partial argument, it's called "partial application." If you're turning a multi-arg function into a single-arg function that returns another single-arg function, it's currying. Currying doesn't apply a function, it just transforms it. https://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application https://en.wikipedia.org/wiki/Currying#Contrast_with_partial...