On Mar 14, 4:34 am, "Darshan Shaligram" <scinti...@gmail.com> wrote:
> Clojure does not appear to intern string literals:
> For interoperability with Java, and the principle of least surprise, I
> think the Clojure reader should also intern string literals that it
> reads.
This was a bit of regression when I switched to different constant
handling. I've restored string literal interning for compiled
literals. Note however that this is not, and will not be, interning of
strings in the reader. The reader can be used for arbitrary data
reading, and it is inappropriate to intern every string read. Only
string literals that are evaluated/compiled are interned.
Rich