Jon,

The ns macro is expanded such that the (gen-class) form appears before any 
(import) calls. So unqualified names are not available yet. There are more 
details in this StackOverflow answer 
<https://stackoverflow.com/a/45929621/1860180> I posted a while back.

Thanks,
Elias.

On Thursday, September 30, 2021 at 6:55:20 PM UTC-4 Jon Seltzer wrote:

> Hi all,
>
> I'm sure this is answered somewhere already but can't find it. The 
> :gen-class option of ns macro has access to imports. Why is it that fully 
> qualified class names are still required?
>

-- 
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/f83003f7-b6c1-4fd2-832f-b504cba0707bn%40googlegroups.com.

Reply via email to