Inner functions and outer 'this' (Re: That hash symbol)

Erik Arvidsson erik.arvidsson at gmail.com
Mon Mar 28 19:16:44 PDT 2011


On Mon, Mar 28, 2011 at 10:35, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> Overall, I really like ^this as a narrow solution to a specific real usage problem. I'm interested in reactions and unless somebody thinks of something that seriously torpedoes it I will probably write it up as a strawman.

I like ^this.

We (Chromium/V8) discussed introducing 'self' as a a way to get the
lexically bound 'this'. The main issue we could think of was that it
might be hard for users to know when to use '^this' vs when to use
'this'.

-- 
erik


More information about the es-discuss mailing list