Relative Content

Tag Archive for currying

Are chained methods that require only one parameter per method equivalent to currying?

I’ve been toying around with Ruby lately and I found myself wondering if in pure object oriented languages (and even those that are not pure) making methods that take only one parameter and then get chained together is equivalent to currying in languages with a functional style? If not, why not? I’d appreciate a detailed, even rigorous answer on the subject.

Is currying too complex a tool to actually use?

Today I feel like I finally grokked currying (in Javascript), and of course, like any programmer who has learned a new trick, my mind immediately began racing over how to improve my current codebase using it.

Have they missunderstood currying or have I?

This question is similar to the question posted on Does groovy call partial application ‘currying’?, but not completely the same, and the answers given there do not really satisfy me.