On Sun, Sep 9, 2012 at 8:50 PM, Jason Orendorff <[email protected]> wrote: > What I think is that default parameters should be specified to be as > much like the following desugaring as possible: > > function f(x=EXPR1, y=EXPR2) { BODY } > ===> > function f(x, y) { > if (x === void 0) x = EXPR1; > if (y === void 0) y = EXPR2; > BODY > }
In case it isn't clear what I'm saying here, I think the same desugaring should hold for generators. Exceptions would then be deferred to "loc 2" in Allen's example. _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

