On Nov 23, 11:38 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
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
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to