> function f(x1, ~~~, xN) {
>     if (x1 === undefined) x1 = e1;
>     ~~~
>     if (xN === undefined) xN = eN;
>     return (function(x1, ~~~ xN) { body }).apply(this, arguments);
> }
>

Effectively sibling scopes, with a copy mechanism from the "defaults" scope
to the "body" scope.  That's what I was going for originally but I wasn't
clever enough to see a natural desugaring implementation.  Neat!

Kevin
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to