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

0 votes
ago in Clojure by

There are rules (informally in the spec, formally in the reader) about disallowing symbols to start with numbers: (def 1asdf 5) However, there aren't rules about namespaces (either middle segments or as the final segment) starting with numbers, leading to their usage in the wild. (For example: https://github.com/marick/Midje/tree/bee206983db22c6dc92044fd7b5b0365bbd44fc6/test/implementation/parsing/0_to_fact_form)

Is this intentional? Should such namespaces be considered legal or not?

1 Answer

+1 vote
ago by
selected ago by
 
Best answer

As far as I can tell, there is no reason a namespace segment other than the first can't start with a number.

ago by
great news, thank you.
...