Thanks J. and Tim, and sorry for doing a shabby job searching the
archive before asking. :-)
Stuart
> http://groups.google.com/group/clojure/browse_thread/thread/82b88a7f6d9f993/0680a4f5dbf6ee61?lnk=gst&q=keyword#0680a4f5dbf6ee61
>
> RH: "The symbol String can name a class but the keyword :Str
http://groups.google.com/group/clojure/browse_thread/thread/82b88a7f6d9f993/0680a4f5dbf6ee61?lnk=gst&q=keyword#0680a4f5dbf6ee61
RH: "The symbol String can name a class but the keyword :String can't
As far as '.', that restriction has been relaxed. I'll try to touch
up
the docs for the next releas
On Fri, Jan 9, 2009 at 6:31 AM, Stuart Halloway
wrote:
>
> From the docs: "Keywords are like symbols, except ... They cannot
> contain '.' or name classes ..."
>
> What goes wrong with a keyword that contains "." or names a class?
> Nothing blows up immdiately at the REPL:
>
> user=> :java.lang.
From the docs: "Keywords are like symbols, except ... They cannot
contain '.' or name classes ..."
What goes wrong with a keyword that contains "." or names a class?
Nothing blows up immdiately at the REPL:
user=> :java.lang.String
:java.lang.String
user=> :foo.bar
:foo.bar
--~--~