Skip to content
Prev 40140 / 63421 Next

Curry: proposed new functional programming, er, function.

On Thu, May 5, 2011 at 9:32 AM, Hadley Wickham <hadley at rice.edu> wrote:
There is some question of whether it should default to the current
environment or the original function's environment.  If the curried
function were regarded as part of a new object whose environment is
the current environment then having the current environment (i.e.  the
object's environment) makes sense but if its regarded purely as an
operation on the original function then the original function's
environment makes more sense.  In any case, an envir= argument to
allow the user to specify it would be desirable.  Perhaps it could
specify the environment to assign (or if a logical or keyword were
specified it would indicate which of the two possibilities just
mentioned to use to make the common choices easy to specify).