Fork me on GitHub

Practicalli Clojure Broadcast - Saturday 09:00 UTC+1 (UK summer time) Introducing clojure.spec, a part of Clojure that can be used to define a specification around data and functions to test for correctness. clojure.spec provides a pragmatic and flexible way to define how data and code should be used using the existing Clojure syntax. Specifications can be written to check values and data structures as well as data passed to a function as arguments. Checking that data contains the right types and values and whether parts of the data can be optional. Specs can be combined to cover more complex data structures. We will walk through some basic examples and lay the foundation for adding spec to projects in further broadcasts.

parrot 24
👍 20
❤️ 8