Hi Peter,

From what I understand, if lambdas are supposed obey Tenent's
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.

Right, I personally think this is unnecessary; functions don't follow this principle, after all.

I think it makes sense for expressions to have the same meaning, but not control flow statements when moved into a new execution context.

Cheers,

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