Closed metametadata closed 7 years ago
Rather than including it in the README, I was going to write an "integrant-repl" project that mimics my existing "reloaded.repl" project.
With regard to reloading multimethods, it hasn't been something I've thought about a lot, yet. One possibility is to create an improved defmethod
that attaches some namespace metadata to the function before attaching it to the multimethod.
I've created an Integrant-REPL project, now.
It would be great to have a section about the reloaded REPL workflow in the README because it's one of the main reasons one would want to use Component-like pattern.
In particular, it would be interesting to see if there's a reliable way of reloading multimethods. I've stumbled upon a problem of old definition of method still working after it was removed from ns and
reset
-ing. To solve this particular problem I've ended with this in a sample project:But I'm not sure if
refresh-all
is going to be fast enough in bigger projects.