Programming Clojure with Clojure 1.2.0 snapshot

This post contains a list of changes between Clojure 1.1.0 and 1.2.0 that would affect you if you’re reading Stuart Halloway’s “Programming Clojure”.

It looks like you’d have to replace,

(use ‘[clojure.contrib.str-utils :only (re-split)])
(filter indexable-word? (re-split #”\W+” “A fine day it is”))

with


(use ‘[clojure.contrib.string :only (split)])
(filter indexable-word? (split #”\W+” “A fine day it is”))

–> (“fine” “day”)

since the str-utils module got renamed to string, and the re-split function to split.