Skip to content

Commit

Permalink
update section on user.clj
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Jan 16, 2024
1 parent 5ecca27 commit 9c9c177
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content/reference/repl_and_main.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ The Clojure REPL automatically loads the following namespaces and refers the fol

If you switch to a different namespace (with `in-ns` or `ns`), these functions will not be available unless referred there explicitly.

Also, the Clojure runtime will look for and load the `user` namespace on startup if it is found. Generally, this should only be used to provide development-time faciliities, and not in a production scenario.
== Loading of `user.clj`

The Clojure runtime will look for and load `user.clj` on runtime startup, if it is found on the classpath. This is a facility designed to provide development-time facilities, and generally not recommended in production use.

Because The `user.clj` file is loaded by the Clojure runtime on initialization, this typically happens before the main namespace in an application executes. Any namespaces or resources loaded by `user.clj` thus impact startup time for your application.

== tap

Expand Down

0 comments on commit 9c9c177

Please sign in to comment.