Question came up in #nrepl about how to see all of the things that load-file evaluates. My thinking was crank up a subrepl with a custom eval, load-file there, and then return. I was surprised that load-file doesn't use the repl's eval, but i'm not sure if that's an expectation i should have.
:eval (fn [form]
(prn "i could do something to: " form)
"i could do something to: " (load-file "stuff.clj") ;; sees the load-file form
#'stuff/foo ;; but not any of the forms in stuff.clj
I was naively expecting to get all of the forms from the file i was loading but that doesn't seem to be the case. Should load-file use the eval function of the current repl?