twifkak / comcast.net wrote:
> Java has an equivalent, actually. Interned Strings (http://mindprod.com/jgloss/interned.html). They're odd, in that they have the same class as normal Strings, but they satisfy the qualities other people are talking about -- object equality for equal strings, for instance.
>
> Dunno about Python & C#.
C# also interns strings in compile time if the string is simple (just
one word, AFAIK).
However, that's for saving memory, not like Ruby's symbol
Thanks.
Sam