Hello,

I'm using a Clojure library which generates symbols of the form a/b/1. They 
are symbols representing URI.

These symbols cannot be serialized as strings and read back with 
read-string.

a) the symbol function does not validate its inputs. 

It was discussed here 
https://groups.google.com/forum/#!searchin/clojure/symbol$20invalid$20name/clojure/WvXYkvLoQhI/B49XobbGXQwJ
and http://dev.clojure.org/jira/browse/CLJ-17

For performance reason this was not implemented. OK. But a person in the 
previous thread proposed to document the behavior of symbol in the 
docstring and it wasn't done.

So until it is done I think we will have a few generation of newcomers 
having the same headaches as me...

b) there was a proposal to implement a reader macro with a pipe notation ( e.g. 
#|symbol with whitespace|) as in Common Lisp.
This would allow to read back symbols which don't follow the naming rules.

Was some work done on this since this proposal was expressed?


Best regards.



-- 
-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to