Don't know about older clojure versions, but running your code in the 1.9
repl I got this:
$ clj
Clojure 1.9.0
user=> (keyword (str "something" "-empty"))
:something-empty


On Wed, Mar 21, 2018 at 2:15 PM, Nick Mudge <mud...@gmail.com> wrote:

> I want to programmatically create some keywords without namespaces?  Or
> are we not supposed to do that?
>
> I can't use the "keyword" function because that only creates keywords with
> a namespace.
>
> For example doing this:
> (keyword (str "something" "-empty"))
> Creates this:
> ::something-empty
> But I want this:
> :something-empty
>
>
> --
> 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/d/optout.
>



-- 
Matteo Moci
http://mox.fm

-- 
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/d/optout.

Reply via email to