ES6 problem with private name objects syntax

Brendan Eich brendan at
Mon Jan 13 16:19:15 PST 2014

Maciej Jaros wrote:
> So basically one could implement Symbol as something similar to GUID 
> generator, right? It should work even if you simply restart a counter 
> and make sure you don't clash with other stuff and e.g. return 
> "__#symbol#__1", "__#symbol#__2" and so on.

No. There must be no way, by guessing or luck, to spell a symbol-named 
property using a string.


More information about the es-discuss mailing list