Browse Clojure Foundations for Java Developers

Working with the REPL

Learn REPL-driven development: evaluate, reload, and debug without restarting your app.

For many Java developers, the REPL is the single most valuable reason to learn Clojure. Think of it as a live connection to your running program where you can ask questions, try fixes, and explore data without rebuilding or restarting.

This chapter shows you how to evaluate forms safely, redefine functions, reload namespaces, and keep your working memory close to the code. You will also learn practical habits—like keeping side effects at the edges—so that interactive development stays reliable instead of becoming “state soup.”

If your Java workflow is already strong (tests, debuggers, profilers), the REPL does not replace it. It complements it by making experimentation and feedback dramatically faster.

In this section

Revised on Friday, April 24, 2026