In CLJS the following evaluate to true:
(identical? "abcd" (join "" [\a \b \c \d]))
(identical? "24.5" (str 24.5))
But they return false in CLJ.
So it appears as if CLJS is interning strings.
My two questions:
1. Is this *currently* always true? Or are there limits and edge cases?
(In python, for example, all strings less than 3 chars are interned. Are
there rules in CLJS?)
2. Should this be relied upon going forward, or is it an implementation detail
that may change at any moment?
--
Mike
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.