Function Application is not Currying

MRAB google at mrabarnett.plus.com
Wed Jan 28 18:37:16 EST 2009


sln at netherlands.com wrote:
> On Wed, 28 Jan 2009 13:32:29 -0800 (PST), Xah Lee <xahlee at gmail.com> wrote:
> 
>> Function Application is not Currying
>>
>> Xah Lee, 2009-01-28
>>
>> In Jon Harrop's book Ocaml for Scientist at
>> http://www.ffconsultancy.com/products/ocaml_for_scientists/chapter1.html
>>
>> It says:
>>
>>    Currying
>>
>>    A curried function is a function which returns a function as its
>> result.
>>
> Curry, is that like chicken soup or some Indian mash?
> 
"Currying" is named after someone called Curry. The 'correct' term is 
"partial parameterisation", which explains why it's often called 
"Currying" instead! :-)

> Why ? How about returning an index number into an array of function pointers
> as handlers from packet data?
> 
> Oh, thats network communications.
> 



More information about the Python-list mailing list