return when desugaring to closures

Mark S. Miller erights at google.com
Thu Aug 21 18:47:21 PDT 2008


On Thu, Aug 21, 2008 at 6:34 PM, Brendan Eich <brendan at mozilla.org> wrote:
> js> [d,e,f] = foo()
> 1,2,3

Is this a simultaneous assignment of d,e,f, or does it declare variables d,e,f?

If the first, can you do a swap as

    [d, e] = [e, d]

?

-- 
    Cheers,
    --MarkM


More information about the Es-discuss mailing list