[plt-scheme] Some fine distinctions

From: Eric Tanter (etanter at dcc.uchile.cl)
Date: Tue May 12 16:36:24 EDT 2009

plus, currying typically only works in a particular predefined order  
of the parameters.

ie. if f has two formal arguments x and y, you can't give it y first.

-- Éric


On May 12, 2009, at 16:29 , Eric Tanter wrote:

>> Individually I think I know what they are but I would have a tough
>> time if asked to distinguish.
>>
>> Currying vs Partial evaluation.
>
> let me try my hands on this one:
>
> currying is just about the possibility to pass arguments to a  
> function in separate steps. Ie. passing a parameter returns a  
> function that waits for the other parameters.
>
> partial evaluation further implies that when you have a parameter  
> that becomes known, you evaluate what you can of the resulting  
> function.
>
> -- Éric_________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.