2 ms·
> I don't think so - unless you mean always interning all strings. The point of symbols is you can do a single address comparison. How can you do that if you co
by masklinn 5y ago
> I don't think so - unless you mean always interning all strings. The point of symbols is you can do a single address comparison. How can you do that if you could have two strings that are the same but have different addresses?
You intern all the literals (which includes lexical symbols) and are 99% if the way there.
- chrisseaton 5y ago> and are 99% if the way there I don't understand - if you're not 100% of the way there then you can't rely on address comparison. 1% of your string comparisons would fail!