Hi Yuh-Ruey,

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.

Best regards,

Michael

--
Print XML with Prince!
http://www.princexml.com
_______________________________________________
Es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to