Brendan wrote:

public @iterator = Symbol.intern('iterator');

Allen wrote:

public @iterator = Symbol('iterator');

[...]

public @iterator = RegistryOfWellKnownSymbols.lookup('iterator');


The big advantage of the last one is that RegistryOfWellKnownSymbols could
be virtualized, so that code operating within such an environment looks up
a different symbol under the name 'iterator'.




-- 
    Cheers,
    --MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to