Add the defclosedrecord option :value-type true. It defines the record
as a value class through value-type (org.hugoduncan/value-type 0.1.127
or later, which must be on the class path). A value record:
^:non-nil metadata and a class tag.clojure.walk/macroexpand-all of a value record throws value-type
:not-installed. See doc/value-type-records.md.
defclosedrecord, a record that rejects undeclared keys and
prevents removal of declared keys.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 |