8. Namespaces, Libraries and Leiningen
Overview
In this chapter, we learn how to organize Clojure code. We start by looking at namespaces—a way to group Clojure functions together. We will see how to create our own namespaces and how to import namespaces written by others. Namespaces are building blocks of Clojure libraries. We will learn how to import and use Clojure libraries. After learning about namespaces and libraries, we investigate how to structure a Clojure project. We then look at Leiningen project template and how it helps developers to create applications.
By the end of this chapter, you will be able to use Leiningen to organize and run your projects.