Discovering Runtime Function References in Clojure

1 · Bozhidar Batsov · May 4, 2019, 1:11 p.m.
Cognitect recently released a new version of REBL that has a cool “find function references (usages)” feature. Rich was kind enough to answer some questions about the new feature’s implementation on Slack, and he even shared one central bit of it - namely the fdeps function that discovers the runtime dependencies of any function: (defn fdeps [val] (set (some->> val class .getDeclaredFields (keep (fn [^java.lang.reflect.Field f] (or (and (identical? cloju...