Andrea Giammarchi (2013-02-14T20:49:03.000Z)
github at esdiscuss.org (2013-07-12T02:26:28.087Z)
One more thought ... the best scenario **ever** would be the ability to define a frozen prototype and create already fixed shaped instance at runtime. I think `Object.freeze()` semantic is not the right one to do this, but I am dreaming about something like this: ```javascript var MyStaticShapeConstructor = Object.createStaticConstructor( inheritFrom, // either null or actually not extremely important descriptors // descriptors we know ); var instance = new MyStaticShapeConstructor; ``` We might discuss if the "constructor" property in descriptors should have a handy, exceptional, treatment (ie invoked with arguments) ```javascript { constructor: { value: function (a, b, c) { // invoked when new MyStaticShapeConstructor(1,2,3) } } } ``` or simply encourage the usage of `o.init(arg1, ..., argN)`; I know this is way too much magic behind the scene but it would be straight forward from different points of view, at least for JS users, IMHO, and really easy to polyfill. Thoughts on this would be much appreciated, thanks. Apologies if already discussed and I have missed that thread.