Yes, this has been suggested in the past, and would enable all sorts of useful
tooling features.
The off-the-top-of-my-head solution (a priori of a proper statement of the
problem :-P would be for all namespaces (c.l.Namespace/namespaces) and each
namespace's aliases and mappings to be held in
2011/9/15 Stathis Sideris
> Hello,
>
> Is it somehow possible to monitor all namespaces for new defs or re-
> defs (and defns etc). Generally, it it possible to implement some sort
> of notification whenever something is added or updated to a namespace?
>
Not that I'm aware of.
> I don't mind
I was about to say that you best bet would be redefining the relevant
functions/macros, when I realized that you cannot do that with def,
because it's a special form.
So short of patching clojure, I don't think one can monitor var
interning. (addition to a namespace)
What you can do, is monitoring