Fork me on GitHub
#rewrite-clj
<
2023-06-17
>
escherize06:06:11

Is there a good trick for finding a symbol in a namespace, no matter how it’s aliased in a clojure ns? I guess I can look through the ns form, and check for the various options. Did someone already do that?

borkdude07:06:10

Yes, you can use edamame for this. It has a function called parse-ns-form which can be used to resolve aliases: https://github.com/borkdude/edamame/blob/967f3df689f44fd24c95052c57c6eca53331dd5d/src/edamame/core.cljc#L147

🙏 1