Skip to content

Commit

Permalink
formular: disallow custom actions with set!-based fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Jul 22, 2024
1 parent 74fbb89 commit 9bbd237
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions congame-core/components/formular.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@
(set! var-id tmp) ...))
#'put-form)

(when (and (ormap values (syntax->datum #'(var-id ...)))
(syntax-e #'{~? action-e #f}))
(raise-syntax-error 'formular "forms with set!-based fields cannot have custom actions" stx #'action-e))

(define maybe-dupe-kwd
(for/fold ([counts (hash)]
[dupe-stx #f]
Expand Down

0 comments on commit 9bbd237

Please sign in to comment.