Symbols, Protocols, Frames, and Versioning

Axel Rauschmayer axel at rauschma.de
Wed Oct 3 12:44:08 PDT 2012


A generic solution for cross-frame sharing would most elegant (instanceof...). But how?

On Oct 3, 2012, at 21:01 , Brendan Eich <brendan at mozilla.org> wrote:

> Thanks for pointing this out. Python's dunder-prefixing or anything like it in JS has that advantage: you can spell the magic property name with a string that works in any frame or global object. Of course strings can collide.
> 
> Symbols are useful in spite of this, but it is telling that we want @iterator to be a singleton across all potentially connected frames.
> 
> So should there be a way in the language to create singleton symbols? If so, how?
> 
> /be

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121003/7e47a86e/attachment.html>


More information about the es-discuss mailing list