I am moving some code to use spec and namespaced keywords under Clojure 
1.10.0 (release). One group of keywords starts with a numeric character 
after the colon, which has worked fine in the non-namespaced context. 
Creating and using the namespaced keyword works correctly in the local 
namespace (using only the double-colon), but fails with "Invalid Token" 
when dereferencing from another workspace.

I'm not sure if this is a bug or if I have been taking advantage of an 
undocumented/unsupported feature.
Having a leading-digit keyword has been very useful, as the names are an 
exacting fit of the problem domain and don't suffer from the addition of 
any visual pollution.

user=> (def example-a {:015-00 "015-00"})
#'user/example-a
user=> (def example-b {::015-00 "015-00"})
#'user/example-b
user=> (:015-00 example-a)
"015-00"
user=> (:015-00 example-b)
nil
user=> (::015-00 example-b)
"015-00"
user=> (::015-00 example-a)
nil
user=> (ns try) 
nil
try=> (:015-00 user/example-a)
"015-00"
try=> (::user/015-00 user/example-b)

Syntax error reading source at (REPL:1:15).
Invalid token: ::user/015-00
Syntax error reading source at (REPL:1:31).
Unmatched delimiter: )
try=>

The current behavior is certainly inconsistent, even if it is not a serious 
bug.

Thank you!


-- 
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/d/optout.

Reply via email to