Skip to content

Fields in selectors should match constructor arguments #28

@neshtea

Description

@neshtea

When defining a record-type, the macro should validate the field-names in selectors vector according to constructor arguments.

Example

(define-record-type Schlingel
  (make-schlingel name) schlingel?
  [ein-feld-das-im-konstruktor-nicht-vorkommt schlingel-name])

(def marcus (make-schlingel "Marcus"))
(schlingel-name marcus)  ; => nil

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions