Does Clojure have an equivalent of Java's import package.*?

不想你离开。 提交于 2019-12-01 02:18:26

Unless I missed an update, there is no way to wild card include packages into a namespace in Clojure currently.

There seems to be no ways of doing that currently. The import macro is only there to import the specified classes into the current namespace. I've tried to write another macro to do what you want, but it doesn't appear to be possible with the class loader used by Clojure as it doesn't let us access package resources.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!