destructuring in formal parameters?

Peter Michaux petermichaux at
Thu Nov 13 15:33:21 PST 2008

On Thu, Nov 13, 2008 at 3:29 PM, Brendan Eich <brendan at> wrote:

> This was in the ES4 proposal, and it's implemented in Firefox 3 /
> JavaScript1.8:
> js> function f({foo, bar}) { return [foo, bar]; }
> js> f({foo:1, bar:2});
> 1,2


> IIRC formal parameter destructuring was Harmonious when I presented it in
> July.

Is there a published list of things which are considered "harmonious"?
I'm particularly curious how lambdas have be received by the technical
committee members after the long discussions and also classes as


More information about the Es-discuss mailing list