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

On Oct 3, 2012, at 21:01 , Brendan Eich <bren...@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
a...@rauschma.de

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

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to