On Nov 23, 11:38 am, "
smf...@googlemail.com" <
smf...@googlemail.com>
wrote:
> Hi,
>
> According tohttp://
clojure.org/reader:
>
> > Keywords are like symbols, except:
>
> > o They can and must begin with a colon, e.g. :fred.
> > o They cannot contain '.' or name classes.
>
> Shouldn't this throw an exception? It seems that keywords aren't
> checked for correctness at all right now.
I'd like to request that keywords continue to allow the '.' character,
as it's useful for certain edge cases (Compojure and clj-html use it
to specify class attributes, for instance). Does the inclusion of a
'.' in a keyword introduce any syntax ambiguity I'm unaware of?
Disallowing class names in keywords seems a little odd too, especially
with AOT. If you compiled a Clojure file like clojure.contrib.def,
would that mean you'd lose the ability to use the keyword :def?
- James