aboutsummaryrefslogtreecommitdiff
path: root/src/guile
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2023-12-16 23:15:21 +0100
committerWojtek Kosior <koszko@koszko.org>2023-12-16 23:15:21 +0100
commit7c23b2d0fcee30f15dbf27cf26ef280a6dde398e (patch)
treee5d5c7fb912b2afaa8beaa9b4cb3ae5869eed8a2 /src/guile
parentcd3bb8b57cbf4f0846664ab1e15ccb76f3b29b4b (diff)
downloadde-paul-records-7c23b2d0fcee30f15dbf27cf26ef280a6dde398e.tar.gz
de-paul-records-7c23b2d0fcee30f15dbf27cf26ef280a6dde398e.zip
Allow using multiple expressions in field update form.
Diffstat (limited to 'src/guile')
-rw-r--r--src/guile/de-paul-records.scm7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/guile/de-paul-records.scm b/src/guile/de-paul-records.scm
index 4b4e91b..5aa05f8 100644
--- a/src/guile/de-paul-records.scm
+++ b/src/guile/de-paul-records.scm
@@ -135,12 +135,11 @@
(#,(format-identifiers "~a-~a" record-name #'field-name)
#,record-base))))))
- ((field-name #:-> value-update-expr)
+ ((field-name #:-> value-update-expr value-update-expr-rest ...)
(identifier? #'field-name)
(syntax->field-init #'(field-name #:=> (lambda (field-name)
- value-update-expr))))))
-
-
+ value-update-expr
+ value-update-expr-rest ...))))))
(define-immutable-record-type <record-init> (make-record-init) record-init?
(inherit record-init-inherit record-init-set-inherit)