This post originated from an RSS feed registered with Java Buzz
by Brian McCallister.
Original Post: Partial Application and Currying Questions
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
I am slowly becoming a functional programming weenie -- really cool stuff. A discussion came up on groovy-dev about how I implemented currying on closures in groovy -- it was pointed out that what I really did was partial-application.
A quick google search sort of reinforced this, but I am not sure the difference, so here is a shameless plea for explanation. Here is my current understanding (in gauche scheme):
I thinkwith-ojb is partial application as it provides two of the three arguments required by with-http-body and returns a function which takes the last. If that is the case, what is currying? Until today I thought that was currying. The wikipedia seems to say this is currying, but it seems to fit exactly the haskell definition of partial application -- and the examples on the wikipedia look very different.