Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.1 KB

REPL.org

File metadata and controls

50 lines (30 loc) · 1.1 KB

How to work with the REPL

What’s a REPL?

The read-eval-print loop (REPL) can be considered an interactive shell. The REPL lets you interact with a running Clojure system.

Many other language environments provide interactive shells. The termn “REPL” is most commonly used for languages in the Lisp family.

How to fire it up

clojure.main

$ java -cp clojure.jar clojure.main --repl

Leiningen

$ lein repl

How to leverage it in IDEs

You can interact with Clojure from within your favourite IDE!

Emacs / SLIME

firing up a fresh REPL

M-x slime

firing up a REPL on an existing project

in the shell:

$ lein swank

then, in Emacs

M-x slime-connect

Other IDEs

contributions welcome!

Further reading