Re: new

Tue, 11 Oct 2011 14:50:27 -0700

On Oct 11, 2011, at 11:53 AM, Jake Verbaten wrote:
> is there any kind of proposal for syntax that is like :
> 
> var proto = {
>   method: function() { },
>   constructor: function(someValue) {
>     this.things = someValue
>   }
> };
> 
> var o = new proto(someValue);
> Object.getPrototype(o) === proto; // true


It's still on my radar.  Most recently see 
https://mail.mozilla.org/pipermail/es-discuss/2011-September/016736.html 

It isn't an accepted Es.next proposal, but I suspect there is wiggle room for 
it to slip in as part of the enhanced object literals/class support if there is 
sufficient interest.

I haven't pushed it too hard yet because I think we have more pressing issues 
to get resolved and I didn't want this to become a distraction.  However, I 
probably should write up a strawman for it.

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

Reply via email to