tag:blogger.com,1999:blog-12467669.post5517350297024741210..comments2023-04-29T07:23:25.825-04:00Comments on Jay Fields' Thoughts: Clojure: name functionJayhttp://www.blogger.com/profile/14491442812573747680noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-12467669.post-3762106802689340842012-06-11T11:20:06.399-04:002012-06-11T11:20:06.399-04:00Alex, I'm not advocating that you should use s...Alex, I'm not advocating that you should use strings as keys. When possible, I always use keywords. However, if you need to support both strings & keywords I think this is a decent option. Obviously, you could also update-keys with 'keyword' and switch :strs to :keys. This post isn't about recommending anything, it's about showing what you *could* do.Jayhttps://www.blogger.com/profile/14491442812573747680noreply@blogger.comtag:blogger.com,1999:blog-12467669.post-69686672190978824892012-06-11T11:14:05.458-04:002012-06-11T11:14:05.458-04:00Not sure I agree with the idea of normalizing to s...Not sure I agree with the idea of normalizing to strings, especially when keywords are the better fit for use as map keys.<br /><br />Note that the function name does not handle name-spacing of keywords. Compare ":foo" and "::foo" to "(name :foo)" and "(name ::foo)" .Alex Stoddardhttps://www.blogger.com/profile/00700602554438046007noreply@blogger.com