Hello,
I think I've found a bug in Clojure's keyword handling. The keyword
function lets you create a keyword containing whitespace but, if
printed, the space isn't quoted or escaped, so if you print and then
read an error occurs. I would expect either the keyword creation to
fail or, when printed, the space to be escaped/quoted such that you
could print and then load the keyword.
E.g.
user=> (def my-map {:key1 (keyword "value one")})
#'user/my-map
user=> my-map
{:key1 :value one}
user=> (load-string (str my-map))
CompilerException java.lang.RuntimeException: Map literal must contain
an even number of forms, compiling:(null:1)
user=>
Alasdair
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
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