The name for the regularity that we all wish JavaScript closure have, but don't, is "Tennent Correspondence":
http://gafter.blogspot.com/2006/08/tennents-correspondence-principle-and.html It is the absence of this regularity that blocks so many attempts to desugar other constructs into functions. We don't have Tennent Correspondence because of misfeatures like the mechanics of break, return, continue, this, arguments, and var. We can't fix these, but we should avoid making the problem worse. When you find yourself in a hole, first stop digging. The old es4 "this function" violated Tennent Correspondence and would make the hole deeper. I'm against. _______________________________________________ Es-discuss mailing list Es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss