|
|
|
|
|
by jonlachlan
4103 days ago
|
|
From the perspective of a non-functional language, it is argument deferral because you're composing your sequence of functions first, which can then be used by later adding inputs for evaluation. Were you thinking of partial application (not the same as currying)? I would agree that this is not argument deferral, rather it's more like argument presetting. |
|
For instance, if I had a function like
with the semantics that a would be evaluated before b, it would be perfectly reasonable to allow someone to evaluate argument b first instead. Thus 'argument deferral': you defer the evaluation of a until after b.The second case is about when the arguments are evaluated: do you evaluate them when the function is called, or do you defer evaluation until when they are used? This is obviously 'argument deferral' as well, but we usually call it lazy evaluation.
http://en.wikipedia.org/wiki/Evaluation_strategy
The term 'Argument deferral' could apply perfectly well to a discussion of Evaluation Strategy, even though that has little to do with currying.