On Apr 24, 2012, at 3:53 PM, Axel Rauschmayer wrote:
> Using a builtin function (as opposed to an operator) would be less
> problematic if one could invoke it infix, e.g.:
>
> this (extend) { x: x, y: y }
That wouldn't address the issues concerning cloning private names, super
binding, etc. I believe Dave's main issue is with the exact .{ syntax. I'm
flexible if that can be be harmoniously resolved with a minor syntactic change
such as:
this.={methodA() {},
methodB() {}
};
or
this.+{methodA() {},
methodB() {}
};
or something else
this.&{methodA() {},
methodB() {}
};
Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss