On Wed, Jun 22, 2011 at 10:35 AM, Brendan Eich <bren...@mozilla.com> wrote:
> Functions have static scope (see the [[Scope]] internal property). This is 
> absolute and with very good reason!

Yes, functions have static scope, but functions (and all objects) do
not have static owning objects, they are free to be passed around and
assigned as desired, this is what a static super breaks.

> Your proposal requires another (implicit) parameter to functions taking super.
>
> Since we do not know at the call site whether a function takes super, it 
> requires an extra parameter for every call. This costs too much.
>

Its value is already resolved via prototype climbing,  I don't see the
tremendous cost is simply making this value accessible within the
function activation which occurs as a result of the prototype
climbing.

> /be
>
>

Cheers,
Sean Eagan
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to