(add-spec-code spec-name predicate field-triples constructor-args constructor)
(define-constructor-rtd type
make-record
constructor-symbol
constructor-args-symbols
field-tuples
meta-data)
Defines a constructor based on a record-constructor-fn. This function takes one argument, a list of field symbols.
Defines a constructor based on a record-constructor-fn. This function takes one argument, a list of field symbols.
(define-record-type-descriptor meta-data type fields rtd-symbol)
(define-type-function meta-data
type
rtd-symbol
predicate
constructor
args
field-tuples)
(emit-own-record-definition type
options
constructor
constructor-args
predicate
field-tuples
opt+specs)
(make-get-accessor-from-field-tuple-fn type
docref
constructor
field-tuples
fields
rtd-symbol
meta-info)
Creating helper function for rtd-record generation
Creating helper function for rtd-record generation
(prepare-arguments! form ns ?type ?second ?params)
Checks validity of arguments and prepares them for define-record-type
call.
Returns vector of arguments:
[type options constructor constructor-args predicate field-triples opt+specs].
If :nongenerative option is truthy, the given nongenerative-id is registered in
the global-record-type-registry. If this id already exists, but the definitions
are different, an error is thrown. Otherwise nil
is returned.
Checks validity of arguments and prepares them for `define-record-type` call. Returns vector of arguments: [type options constructor constructor-args predicate field-triples opt+specs]. If :nongenerative option is truthy, the given nongenerative-id is registered in the global-record-type-registry. If this id already exists, but the definitions are different, an error is thrown. Otherwise `nil` is returned.
(validate-fields! fields)
Checks if magics are used in field-names, throws if present
Checks if magics are used in field-names, throws if present
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close