Identifiers in JavaScript cannot contain a hyphen/minus character:
https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variables,_and_literals
> A JavaScript identifier must start with a letter, underscore (_), or dollar 
> sign ($);
> subsequent characters can also be digits (0-9). Because JavaScript is case
> sensitive, letters include the characters "A" through "Z" (uppercase) and the
> characters "a" through "z" (lowercase).
> Starting with JavaScript 1.5, you can use ISO 8859-1 or Unicode letters such
>  as å and ü in identifiers. You can also use the \uXXXX Unicode escape
> sequences as characters in identifiers."

ClojureScript maps all hyphens in identifiers to underscores.

This has been reported as a bug for protocols before:
http://dev.clojure.org/jira/browse/CLJS-336

- Raju

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