Adam Schmideg
Adam Schmideg

Reputation: 10850

Location of generated class files when used in clojure repl

When I enter (use 'some.namespace) in the Repl, the corresponding clojure file is compiled and loaded. Are the compiled class files stored on the file system, or they only reside in the memory? The Repl is started from the command line, no editor/IDE is involved.

Upvotes: 3

Views: 189

Answers (1)

Rayne
Rayne

Reputation: 32625

When you use a namespace, no class files are generated anywhere that I know of. The only time class files are generated are if you explicitly AOT compile your code, and most of the time, you won't need to.

You can learn more about compilation here: http://clojure.org/compilation

Upvotes: 2

Related Questions