Please excuse the self-reply; Looking at the compiled version of (keyword?), I can see a line that appears to compare the first character of the keyword string against a multi-character string constant:
cljs.core.keyword_QMARK_ = (function keyword_QMARK_(x){ var and__3574__auto____2211 = goog.isString.call(null,x); if(cljs.core.truth_(and__3574__auto____2211)) {*return cljs.core._EQ_.call(null,x.charAt(0),"ï· ");* } else {return and__3574__auto____2211; } }); Stepping into cljs.core._EQ_ in the debugger shows that the first argument is one character long, but the second is 3 characters long. Is this just some encoding issue in my setup? I'm on Mac OS X 10.5, and I got the same result in FF 6 and Chrome 13. On 2 September 2011 17:41, Stuart Campbell < stuart.william.campb...@gmail.com> wrote: > Hi, > > When I compile the following to JavaScript, I expected it to output > "foo" in the console log: > > (.log js/console (name :foo)) > > However, it outputs "ï· 'foo". > > Is that right? > > Regards, > Stuart > > -- > 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 -- 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