diff options
author | Wojtek Kosior <koszko@koszko.org> | 2023-12-16 23:15:21 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2023-12-16 23:15:21 +0100 |
commit | 7c23b2d0fcee30f15dbf27cf26ef280a6dde398e (patch) | |
tree | e5d5c7fb912b2afaa8beaa9b4cb3ae5869eed8a2 /src/guile/de-paul-records.scm | |
parent | cd3bb8b57cbf4f0846664ab1e15ccb76f3b29b4b (diff) | |
download | de-paul-records-7c23b2d0fcee30f15dbf27cf26ef280a6dde398e.tar.gz de-paul-records-7c23b2d0fcee30f15dbf27cf26ef280a6dde398e.zip |
Allow using multiple expressions in field update form.
Diffstat (limited to 'src/guile/de-paul-records.scm')
-rw-r--r-- | src/guile/de-paul-records.scm | 7 |
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) |