No subject

Wed Nov 12 19:35:46 PST 2008

principle, then they cannot have a return statement/expression.
Wrapping an expression in a lambda must not change the meaning of the
program. the following would need to be equivalent.


lambda () {exp;}

If a return was required in a lambda then the following would not be equivalent

function() {
  return 2;
  return 1;

function() {
  lambda() {return 2;}
  return 1;

The first function would return 2 and the second would return 1.

That is my understanding anyway.


More information about the Es-discuss mailing list