Date: 2026-06-16
clj-zig needs a primary form for defining a Clojure-callable, Zig-backed function.
Use defnz for Clojure-callable Zig-backed functions.
It reads as defn plus Zig and keeps the mental model anchored in
ordinary Clojure function definition: "I defined a Clojure function
whose implementation happens to be Zig."
An explicit compile/load/bind sequence was the thing to avoid; it exposes the native machinery the design wants hidden.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |