Skip to content

Commit

Permalink
clojure-cli: repl startup requires clojure.core
Browse files Browse the repository at this point in the history
Signed-off-by: John Practicalli <250870+practicalli-john@users.noreply.github.com>
  • Loading branch information
practicalli-johnny authored Jul 31, 2023
1 parent 3abd157 commit 2d9e258
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/clojure-cli/repl/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ Evaluate Clojure code by typing at the `=> user` prompt pressing `Return`, the r

> ++ctrl+"c"++ if the repl process does not return to the shell prompt.
## REPL startup

The Clojure REPL always starts in the `user` namespace.

During startup the the `clojure.core` functions are required (made available) in the user namespace, so `(map inc [1 2 3])` can be called without specifying the `clojure.core` namespace in which those functions are defined.

> If clojure.core were not required, then the expression would be `(clojure.core/map clojure.core/inc [1 2 3])`
### Customize Rebel Readline

Expand Down

0 comments on commit 2d9e258

Please sign in to comment.