Re: keyword bug

2013-04-15 Thread Andy Fingerhut
The description of legal symbols at http://clojure.org/reader could be somewhat more explicit on this. One could read it to mean that since :m/7 starts with an non-numeric m after the :, it is legal. One could also infer from it that since within namespace m you could not use :7 (since that

Re: keyword bug

2013-04-15 Thread Colin Fleming
This is something I noticed the other day - the reader doc states of keywords They cannot contain '.' or name classes. Clearly most qualified keywords will contain '.'. On 15 April 2013 18:07, Andy Fingerhut andy.finger...@gmail.com wrote: The description of legal symbols at

keyword bug

2013-04-14 Thread ubun2
(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

Re: keyword bug

2013-04-14 Thread Dave Della Costa
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,

Re: keyword bug

2013-04-14 Thread Marko Topolnik
On Monday, April 15, 2013 2:50:11 AM UTC+2, David Della Costa wrote: 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=

Re: keyword bug

2013-04-14 Thread David Della Costa
Ah, my mistake, apologies for adding noise. In that case, not sure what to say...I'll let someone with better knowledge of Clojure internals respond. 2013/4/15 Marko Topolnik marko.topol...@gmail.com On Monday, April 15, 2013 2:50:11 AM UTC+2, David Della Costa wrote: If you give keyword two