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 wrote: > The description of legal symbols at http://clojure.org/reader could be > some

Re: keyword bug

2013-04-14 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 sta

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 > On Monday, April 15, 2013 2:50:11 AM UTC+2, David Della Costa wrote: > >> If you give keyword two arguments the first

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) > # > m=> (clojure.core/keyword "m" "7") > :m/7 >

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) # 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,

keyword bug

2013-04-14 Thread ubun2
(keyword "m" "7") ;;=> :m/7 :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 firs