The following cljs-repl session shows the issue:

--------

ClojureScript:cljs.user> (def my-var "YES")
"YES"
ClojureScript:cljs.user> my-var
"YES"
ClojureScript:cljs.user> (def my_var "NO")
"NO"
ClojureScript:cljs.user> my_var
"NO"
ClojureScript:cljs.user> my-var
"NO"
ClojureScript:cljs.user> (set! my-var "MAYBE")
"MAYBE"
ClojureScript:cljs.user> my_var
"MAYBE"
ClojureScript:cljs.user>

--------

The official clojure spec allows both "-" and "_" in the symbol names 
(http://clojure.org/reader), and the clojurescript docs don't mention anything 
about this as far as I could tell.

Not sure if this has been reported before - I searched JIRA and the mailing 
list, but couldn't find anything, but it's difficult to search for "_"…

Bug?
Mapping limitation?

-FrankS.

-- 
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