Chapter 3. Clojure Next

In this chapter, we will cover the following topics:

  • Using destructuring techniques
  • Using functional programming style
  • Using threading macros
  • Defining simple macros
  • Defining more advanced macros
  • Using protocols
  • Defining multimethods
  • Transducers for dummies
  • Logic programming in Clojure

Introduction

This chapter is for Clojure programmers to jump to the next step and contains advanced concepts and techniques, including destructing, functional programming, and macros. Clojure's macros are very strongly inherited from Lisp. You will learn how to realize polymorphism in Clojure using protocol and multimethod. Finally, you will dive into the transducers and logic programming that take you to Clojure's fantastic world!

Get Clojure Programming Cookbook 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.