If you give keyword two arguments the first one is the namespace, and you are generating a namespaced keyword. To expand on your example:
clojure.core=> (in-ns 'm) #<Namespace m> m=> (clojure.core/keyword "m" "7") :m/7 m=> {::7 "foo"} {:m/7 "foo"} m=> If you want to chain strings together to make a keyword, then you'll have to wrap them in str or the like: clojure.core=> (keyword (str "m" "7")) :m7 clojure.core=> Cheers, DD (2013/04/15 0:37), ubun2 wrote: > (keyword "m" "7") ;;=> :m/7 > > :m/7 ;;=> #<RuntimeException java.lang.RuntimeException: Invalid token: > :m/7> > > a bug right? > > -- > -- > 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 unsubscribe from this group and stop receiving emails from it, send > an email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.