This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-17
Channels
- # ai (1)
- # announcements (2)
- # babashka (29)
- # beginners (43)
- # calva (1)
- # cider (3)
- # clerk (6)
- # clj-kondo (3)
- # cljdoc (2)
- # cljs-dev (1)
- # clojure (16)
- # community-development (8)
- # data-science (1)
- # emacs (6)
- # events (4)
- # hyperfiddle (14)
- # lsp (24)
- # practicalli (1)
- # reagent (5)
- # releases (1)
- # rewrite-clj (2)
- # vim (6)
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?
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