On building a full-featured REPL, handling errors, and the different REPL APIs in the Clojure ecosystem: https://tonsky.me/blog/clojure-sublimed-3/