1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-21 09:40:28 +02:00
Files
guix/tests/records.scm
Ludovic Courtès 5291fd7a42 records: Support field sanitizers.
* guix/records.scm (make-syntactic-constructor): Add #:sanitizers.
[field-sanitizer]: New procedure.
[wrap-field-value]: Honor F's sanitizer.
(define-record-type*)[field-sanitizer]: New procedure.
Pass #:sanitizer to 'make-syntactic-constructor'.
* tests/records.scm ("define-record-type* & sanitize")
("define-record-type* & sanitize & thunked"): New tests.
2021-08-12 12:34:13 +02:00

16 KiB