new instantiation design alternatives

Brendan Eich brendan at mozilla.org
Thu Sep 18 20:49:26 PDT 2014


Kevin Smith wrote:
> Just for the sake of capturing everything, here's an updated version 
> of the extended header idea:
>
> https://gist.github.com/zenparsing/5efa4459459b9f04d775
>
> Cheers!

In the interest of the full dialectic, I encourage everyone tempted by 
new^ and all-degrees-of-freedom-including-hanging-yourself to look at 
this. It doesn't address some use-cases (constructor called differing 
from new'ed, notably), but perhaps that could be orthogonal via some MOP 
(if truly the hard/exceptional/native-legacy case).

/be


More information about the es-discuss mailing list