Hi Rich, is this intended behavior? (v1.0 and trunk)

------- for literal symbols, seems sensible ------
'aaaaa/bbbbb  =>  aaaaa/bbbbb
(namespace 'aaaaa/bbbbb)  =>  "aaaaa"
(name 'aaaaa/bbbbb)  =>  "bbbbb"

------- for generated symbols, seems sensible ------
(symbol "aaaaa/bbbbb")  =>  aaaaa/bbbbb
(namespace (symbol "aaaaa/bbbbb"))  =>  "aaaaa"
(name (symbol "aaaaa/bbbbb"))  =>  "bbbbb"

------- for literal keywords, seems sensible ------
:aaaaa/bbbbb  =>  :aaaaa/bbbbb
(namespace :aaaaa/bbbbb)  =>  "aaaaa"
(name :aaaaa/bbbbb)  =>  "bbbbb"

------- for generated keywords, seems dodgy ------
(keyword "aaaaa/bbbbb")  =>  :aaaaa/bbbbb
(name (keyword "aaaaa/bbbbb"))  =>  "aaaaa/bbbbb"
(namespace (keyword "aaaaa/bbbbb"))  =>  nil

---
It would seem cleaner if the java Keyword.intern() and Symbol.intern()
methods were symmetrical and used the same way in core.clj.

Cheers, Jon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to