Yes, that's almost good solution and works on runtime.
Almost because I would use `doseq` instead of `for`. `for` generates lazy 
seq.

poniedziałek, 5 października 2020 o 11:41:53 UTC+2 peter...@gmail.com 
napisał(a):

> On Friday, 2 October 2020 at 20:38:50 UTC+1 Bost wrote:
>
>> I have a problem with `def` in macros. I'd like to create a bunch of 
>> following definitions:
>>
>> Also possible to do without macros:
> (defn def-stuff [xs] (for [x xs] (intern *ns* (symbol x) (upper-case x))))
> This seems to work for me, if anyone knows why it's not right, I'd love to 
> hear.
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/9825f948-efeb-426b-97fd-189f820b3e22n%40googlegroups.com.

Reply via email to