From a pragmatic point of view, I'd summarize the situation as
follows:
- The Clojure documentation lists which characters can be used in
symbols. If you care about long-term portability, you'd best stick
to those, though no one will sign a contract guaranteeing this list
forever.
Given how young the language is, I don't find that particularly
reassuring.
- Two characters, . and /, are treated specially even though this is
not or not clearly stated in the documnentation. Better don't use
those in unqualified symbols.
Clearly enough in http://clojure.org/reader to know to avoid them as
generic symbol characters.
- Two symbols, ns and in-ns, are treated specially in var lookups.
They will always resolve to their meanings in clojure.core, even if
defined differently in some other namespace. This is not documented
and may be a temporary feature of the current documentation.
Didn't realize that, good to know.
Thanks to Meikel and Per as well for their comments.
I think I'll stick to using what works even if not officially
sanctioned, with the belief that clojure will 'do the right thing' and
not take away symbol characters without:
a) very very good reason and
b) prominent notice of the new functionality of the off-limits-to-
symbols characters in the release notes.
--Doug
--
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
To unsubscribe, reply using "remove me" as the subject.