Apologies, there was a typo in my original email, what I meant to say
was that:

(js/alert (keyword? :foobar))
output result => false
was compiled to =>
alert.call(null,cljs.core.keyword_QMARK_.call(null," 'foobar"));

(js/alert (string? :foobar))
output result => true
was compiled to =>
alert.call(null,cljs.core.string_QMARK_.call(null," 'foobar"));

The actual object that was passed to both clj.core.string_QMARK_  and
keyword_QMARK_ is a string with a 3 character bytestring of hex values
0xef 0xb7 0x90, followed by quote ' and the keyword string (foobar in
this case).

Is this a bug in the conversion of the clojure keyword to the
JavaScript object?

On Jan 9, 4:50 am, Michael Fogus <mefo...@gmail.com> wrote:
> In the compiled code it looks like the call to keyword? Is happening in
> both cases.  Wires are definitely crossed, but it's unclear where.  Are you
> certain that the ClojureScript shown is the same code that gets compiled?

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

Reply via email to