Hi,

Is this a bug with ClojureScript's keyword? function? On the REPL, the
return value of the function is fine.

ClojureScript:cljs.user> (keyword? :foobar)
true
ClojureScript:cljs.user> (string? :foobar)
false

However, when the following is compiled to JavaScript, the output is
not as expected:

(js/alert (keyword? :foobar))
=> false
(js/alert (string? :foobar))
=> true

The actual JavaScript output is:

alert.call(null,cljs.core.keyword_QMARK_.call(null,"�'foobar"));
alert.call(null,cljs.core.keyword_QMARK_.call(null,"�'foobar"));

Is this a bug, or something that is to be expected?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to