Chapter 3. Dipping your toes in the pool

This chapter covers

  • Truthiness
  • Nil punning
  • Destructuring
  • Using the REPL to experiment

Deeper and broader topics will be covered in later chapters, but now’s a good time to pick through an eclectic selection of smaller topics. The topics covered in this chapter stand alone but are important. Covering them now will be a fun way to start digging into practical matters of how to use Clojure.

We covered a lot of conceptual ground in the previous chapter and built your Clojure lexicon. In this chapter, we’ll take a detour into some fundamental underpinnings relevant to every Clojure project. First we’ll explore Clojure’s straightforward notions of truthiness,[1] or the distinctions between values considered ...

Get The Joy of Clojure, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.