Syntax Reference
A quick refresher on reader syntax, literals, namespaces, and the special forms you must recognize.
Use this section when you are reading Clojure code and feel “stuck on the shape.” It’s a compact reminder of how forms are written and what common literals mean.
For Java developers, the goal is fluency: recognize the few special forms, understand namespacing and require, and get comfortable with Clojure’s data literal syntax so you can debug by inspection.
In this section
-
Basic Syntax and Data Types
How to read Clojure forms and the literals you’ll see most: numbers, strings, keywords, symbols, and nil.
-
Collection Literals
Quick reference for Clojure collection literals and the operations you’ll use most on lists, vectors, maps, and sets.
-
Functions and Anonymous Functions
How to define and use functions in Clojure: arities, anonymous functions, variadic args, destructuring, and apply.
-
Special Forms and Macros
Recognize the small set of special forms and understand what macros do when reading real Clojure code.
-
Namespaces and Imports
How to declare a namespace, require Clojure libraries, and import Java classes in an idiomatic ns form.