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?
David _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

