Symbols, Protocols, Frames, and Versioning

Axel Rauschmayer axel at
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> 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list