Date: 2026-06-16
Accepting or returning a record across the boundary needs a known memory layout.
Clojure records participate through defrecordz, not automatic
conversion of arbitrary records.
A bridged record gives Zig a known field order, field types, alignment, layout, and ownership rules; an arbitrary Clojure record carries none of these.
Automatic record-to-struct conversion was considered; without a declared layout it cannot produce a sound Zig struct.
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 |