return when desugaring to closures

Brendan Eich brendan at mozilla.org
Thu Aug 21 11:57:25 PDT 2008


On Aug 21, 2008, at 11:24 AM, Mark S. Miller wrote:

> On Thu, Aug 21, 2008 at 11:09 AM, Brendan Eich  
> <brendan at mozilla.org> wrote:
>> On Aug 21, 2008, at 10:50 AM, Lex Spoon wrote:
>>> Desugaring to closures is highly worthwhile,
>>
>> Why?
>
> When it doesn't work, it doesn't work.

Glad to hear it.


> But when it does work, it's
> highly worthwhile because it's the closest thing we've got to proper
> lambda abstraction.

But it's not, for the reasons just cited by Waldemar and me. We can  
either limp along (strict mode is not enough) or add better forms.  
That choice is an open one in Harmony, with a bias toward conserving  
existing runtime semantics, but not at the price of obfuscation or  
integrity bugs.

/be





More information about the Es-discuss mailing list