Symbols, Protocols, Frames, and Versioning

Kevin Smith khs4473 at gmail.com
Thu Oct 4 10:01:28 PDT 2012


> Dave Herman mentioned another idea: intern'ing strings as symbols. You'd
> lose uniqueness but avoid colliding with any string. So
>
>   public @iterator = Symbol.intern('iterator');
>
> Is this much better than just using 'iterator' or dunder-iterator?
>

Apologies, but what would interning a string as a symbol mean?

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121004/dab3250e/attachment.html>


More information about the es-discuss mailing list