liveBook · Manning

Clojure.core

As explained in Clojure: The Essential Reference

clojure.core is the Clojure namespace containing the language's principal public functions, macros, operators, and conditionals.

clojure.core is Clojure’s principal public namespace: it supplies basic math operators, function-building functions, conditionals, and many other language APIs. Its definitions are available without explicitly referencing a namespace. section 1.4

Use clojure.core as the default foundation for Clojure programs:

  • It contains roughly 700 function and macro definitions. section 1.4
  • It includes operators, conditionals, and functions for creating and manipulating functions. section 1.4
  • Other standard namespaces, such as clojure.string, clojure.test, and clojure.zippers, may require qualification or require. section 1.4
  • Definitions marked alpha are usable but subject to change. section 1.4
Figure 1.2. All other non-core namespaces.
02 namespaces

Compare clojure.core with the other non-core namespaces shipped in the standard library. section 1.4

How Clojure: The Essential Reference covers it

How deep it goes
Defines core’s scope and availability, but stops short of explaining individual functions, macros, contracts, or edge cases.
Examples
Uses clojure.string/upper-case, clojure.test, and clojure.zippers as examples of non-core namespace organization.
What it assumes
Assumes familiarity with Clojure namespaces while introducing the distinction between core, other standard namespaces, and Java interoperability.
What you can do after
Evaluate/understand which APIs are implicitly available and when other standard namespaces need qualification or requiring.
How it connects
Connects core with namespaces, standard-library organization, Java interoperability, persistent collections, concurrency, and software transactional memory.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Clojure: The Essential Reference. The section links point to the parts of the book it draws on.