Inner functions and outer 'this' (Re: That hash symbol)
Allen Wirfs-Brock
allen at wirfs-brock.com
Tue Mar 29 09:18:34 PDT 2011
On Mar 29, 2011, at 7:26 AM, David Herman wrote:
>
>
> PS A propos of nothing, the ^this syntax probably doesn't work because of ASI; try parsing:
>
> x = y
> ^this.foo()
>
I specified that "^this" was a lexical token so I ASI should work fine. But you would have to say
y ^ /'*whitespace*/ this.foo()
if you wanted xor which is a breaking syntax change.
I suppose we could use the universal # solution and make it #^this although that is less visually attractive.
allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110329/2eb0337b/attachment.html>
More information about the es-discuss
mailing list