Skip to content

Instantly share code, notes, and snippets.

@samdphillips
Created November 8, 2023 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samdphillips/6adbc8d17857819fdf2e7458212f8b37 to your computer and use it in GitHub Desktop.
Save samdphillips/6adbc8d17857819fdf2e7458212f8b37 to your computer and use it in GitHub Desktop.
(define-syntax-parse-rule (with-env ([var val] ...) body ...+)
(call-with-env
(make-environment-variables
(~@ (string->bytes/locale var)
(string->bytes/locale val)) ...)
(λ () body ...)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment