Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Syntax and reader by

I've read that the Clojure reader allows reading of numeric keywords because it would cause breaking changes in some libraries to change it, so it seems keywords were not intended to be used in that way. However, is there a breaking reason to not allow the name part of a qualified keyword to be numeric? Since numeric keywords are already being used/allowed?

Use-Case:

I've been playing with modeling in Datomic which encourages namespaced things (that aren't really namespaced) and went with enums for US State FIPS codes since that's what we work with over state names and don't need more than that, i.e., :state/01

This works

(name :01) 
=> "01"

But this doesn't

(name :state/01)
=> Invalid token: :state/01

1 Answer

0 votes
by
...