(Almost) everything is expression

David Herman dherman at mozilla.com
Fri Nov 11 15:20:35 PST 2011


On Nov 11, 2011, at 2:51 PM, Mike Samuel wrote:

> If statements as expressions goes forward, we should look into
> tweaking completion values.
> 
> IMHO, a code maintainer who sees
> 
>    resource = ..., foo(resource)
> 
> would expect to be able to wrap the use of resource in a try finally thus
> 
>    resource = ..., (try { foo(resource) } finally { release(resource) })
> 
> without changing the completion value of the expression.

Good catch! (no pun intended)

I'll add this to

    http://wiki.ecmascript.org/doku.php?id=harmony:completion_reform

Thanks,
Dave



More information about the es-discuss mailing list