Skip to content

ProgrammingClojure

Josh Schairbaum edited this page Oct 15, 2013 · 2 revisions

If you’re a Java programmer, if you care about concurrency, or if you enjoy working in low-ceremony language such as Ruby or Python, Programming Clojure is for you. Clojure is a general-purpose language with direct support for Java, a modern Lisp dialect, and support in both the language and data structures for functional programming. Programming Clojure shows you how to write applications that have the beauty and elegance of a good scripting language, the power and reach of the JVM, and a modern, concurrency-safe functional style. Now you can write beautiful code that runs fast and scales well.

REPL

  • Ctrl + D to exit REPL
  • *1, *2, *3 are the results of the last 3 evaluated expressions
  • *e holds the last exception - (.printStackTrace *e) is clojure-ish Java to print stack trace
  • (load-file "absolute-or-relative-path.clj")

Resources