Closed trevor closed 10 years ago
You can just pass a string key with whatever value you want, eg:
(put! "foo/bar\baz" v)
I suppose it depends on if you mean to enforce namespace semantics, the tradeoff being reduced parity between keywords and strings.
(name "a/b/c/d")
;=> "a/b/c/d"
(name :a/b/c/d)
;=> "d"
(defn k->s [k] (subs (str k) 1))
(k->s :a/b/c/d)
;=> "a/b/c/d"
I'm not opposed to using k->s
internally if you'd like to make a pull request for it. :)
:) I'll put something together, thanks.
in cookies.clj
name
is being used to stringify keywords, but the downside is that it's incompatible with slashes.