O'Reilly logo

Functional Programming: A PragPub Anthology by Michael Swaine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20Clojure’s Exceptional Handling of Exceptions

by Stuart Halloway

If you don’t know about conditions, you should. Conditions are basically exception handling, but with greater flexibility. Many Lisps feature a condition system, and Clojure is no exception (pun inflicted by editor). Clojure’s condition system is called error-kit. In this chapter, you will learn how to use error-kit, and why you will prefer it to plain old exception handling.

You don’t need to have bought my book[20] to understand this article, but why wouldn’t you want to? ;) You can follow along throughout this article by entering the code at Clojure’s REPL. To install a REPL on your local machine, you can download the sample code from the book. The sample code has ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required