Symbols, Protocols, Frames, and Versioning

David Bruant bruant.d at
Wed Oct 3 12:11:32 PDT 2012

Le 03/10/2012 21:01, Brendan Eich a écrit :
> 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?
Support from the system is required since it can't be achieved by JS
scripts themselves. System modules, maybe?


More information about the es-discuss mailing list