Fork me on GitHub
#leiningen
<
2018-08-08
>
hjrnunes09:08:52

hi, can anyone succintly explain what injections does, please? Or, rather, this comment: ;; Forms to prepend to every form that is evaluated inside your project. Does this mean that the injection will be run with every sexp? How many times is it actually run?

gfredericks11:08:24

I think of it as something that runs very close to the beginning of your project's jvm process

gfredericks11:08:05

mainly useful for manipulating global state of the system that's needed before whatever you're really doing useful for tasks like test, run, and repl

gfredericks11:08:23

easy to try it out with println to see when it runs

gfredericks11:08:36

:injections (println "HALLO")