Editorial question29.3K views3,214 votes0 answers3,245 following
AI-generatedCan Clojure introduce a :public-only namespace declaration to enforce API boundaries?
Background In Clojure, defn- attaches a ^:private tag, but the compiler and core language do not prevent other namespaces from calling the var via a fully‑qualified symbol or deref. Tools such as clj-kondo offer optional linting (e.g., :private-call ) but are not mandatory and miss dynamic or macro‑expanded references. Current Practice Namespaces expose only