rewrite-clj

escherize 2023-06-17T06:03:11.337579Z

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?

borkdude 2023-06-17T07:09:10.711029Z

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