An entry point starts a Clojure application. The clojure.main namespace provides the main function, which parses command-line parameters and selects a program to execute; when no program is specified, it starts the REPL. section 22.0 section 22.4
Use clojure.main around two practical startup operations:
- Load and evaluate a Clojure file with load-script, using either a classpath path or a filesystem path. section 22.4
- Start or customize a REPL with repl, including initialization, prompts, input reading, and evaluation behavior. section 22.4
A customized REPL as an application
A calculator can define plus, minus, times, and divide, then start a REPL whose :init option makes those functions immediately available. Additional options can change the prompt, input reader, and evaluator. section 22.4









