Basic Lambdas and Explicit Tail Calls Repackaged
mikeday at yeslogic.com
Tue Dec 9 03:23:39 PST 2008
> I was also under the impression that since lambdas were lighter
> functions that would be more efficient in time and/or space.
Is there any optimisation that could be performed for lambdas, but
couldn't be performed for normal functions?
For example, it is easy to statically check that a function does not
refer to 'this', or 'arguments' (right?) so in theory a function that
does not use these features should not have to pay for them.
Functions are mutable objects and could perhaps gain a potential speed
boost in some circumstances by being immutable. But that could be
achieved by a generic mechanism for making immutable objects, and does
not require introducing a new type of function.
Print XML with Prince!
More information about the Es-discuss