The ClojureScript REPL

As of this writing, using the default ClojureScript REPL is quite frustrating and a terrible user experience. For example, when you start a ClojureScript REPL with lein trampoline cljsbuild repl-{listen|rhino}, there’s no command history, basic keyboard shortcuts don’t work, and code completion is completely absent, too.

Unsurprisingly, this year’s State of ClojureScript Survey revealed that a lot of people aren’t using a ClojureScript REPL at all.

However, the rlwrap (readline wrapper) command-line tool fixes most of these issues except for the missing code completion. After installing it, simply prefix all commands with rlwrap and enjoy a more welcoming REPL.

$ rlwrap lein trampoline cljsbuild repl-{listen|rhino}

Next: Drag and Drop Using Om
Previous: Idiomatic Function Names in Clojure