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