I'm new to ClojureScript, but I didn't find this difference from Clojure 
noted anywhere. Is this expected?

In Clojure (expected):

(clojure.core/read-string "'(foo 42)")
=> (quote (foo 42))

In ClojureScript:

(cljs.reader/read-string "'(foo 42)")
=> '

If I do the long form quote it works fine:

(cljs.reader/read-string "(quote (foo 42))")
=> (quote (foo 42))

But it appears that it's just reading the quote as a symbol in cljs:

(type (cljs.reader/read-string "'(foo 42)"))
=> cljs.core/Symbol

Thanks,
Matt

-- 
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 https://groups.google.com/group/clojurescript.

Reply via email to