New ES6 draft now available
Tom Van Cutsem
tomvc.be at gmail.com
Sun Nov 25 12:48:01 PST 2012
2012/11/24 Allen Wirfs-Brock <allen at wirfs-brock.com>
> On Nov 24, 2012, at 8:43 AM, David Bruant wrote:
> > The fact that Object.getPrototypeOf retrieves the [[Prototype]] (ES5)
> or delegates to [[GetPrototype]] (ES6?) makes sense. I find delegating to
> [[GetInheritance]] more debatable.
> This is a point that TomV and I have debated. Tom also thinks that the
> MOP/Proxy trap/Reflect.* naming should follow the precedents set by ES<=5.
> My position is that these legacy functions are at a higher layer than the
> MOP and hence do not necessarily need to follow the same conventions. Also
> the current names are not all that consistent and don't reflect our current
> deeper understanding of JS objects (including DOM legacy). I'd prefer to
> keep the MOPish layer (including Proxy traps and Reflect.*) internally
> consistent and where necessary or beneficial deviate from legacy naming
> used at higher abstraction layers.
My preference is indeed to stick with ES5 terminology, especially if there
already is good user-facing terminology.
ES5 has Object.getPrototypeOf, the most consistent would thus be to use
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss