Proposal: opt-out local scoping

Brendan Eich brendan at mozilla.org
Thu Aug 28 13:52:27 PDT 2008


On Aug 28, 2008, at 1:23 PM, P T Withington wrote:

> I'd like to have a syntax where this is _not_ implicitly bound.  One
> idea would be to riff on default arguments:
>
>    function example (receiver=this, ...

Why wouldn't you use |this| for the parameter name? We did for type- 
annotating |this| in various proposals.

Some functions have a bound |this| when you extract them. Such  
override attempts would fail. Throw or fail silently?

/be



More information about the Es-discuss mailing list