Michiel Borkent / Nov 27 2018
Remix of Clojure by Nextjournal

Clojure Template

Let's add speculative to the deps.

{:deps
 {org.clojure/clojure {:mvn/version "1.10.0-beta8"}
  org.clojure/tools.deps.alpha
  {:git/url "https://github.com/clojure/tools.deps.alpha.git"
   :sha "f6c080bd0049211021ea59e516d1785b08302515"}
  speculative {:mvn/version "0.0.3-SNAPSHOT"}}}
deps.edn
Extensible Data Notation

Let's instrument clojure.core!

(require '[speculative.instrument :refer [instrument]])
(instrument)

This call to merge will now fail with this awesome spec error...

(merge 1 1)

But wait, there's more.