return when desugaring to closures

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

On Thu, Aug 21, 2008 at 6:34 PM, Brendan Eich <brendan at> 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]



More information about the Es-discuss mailing list