From 7c23b2d0fcee30f15dbf27cf26ef280a6dde398e Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 16 Dec 2023 23:15:21 +0100 Subject: Allow using multiple expressions in field update form. --- src/guile/de-paul-records.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/guile/de-paul-records.scm') 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 (make-record-init) record-init? (inherit record-init-inherit record-init-set-inherit) -- cgit v1.2.3