guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: with-syntax return error in Guile, not in Kawa or Racket


From: Jean Abou Samra
Subject: Re: with-syntax return error in Guile, not in Kawa or Racket
Date: Mon, 06 May 2024 11:41:39 +0200
User-agent: Evolution 3.52.1 (3.52.1-1.fc40)

> (with-syntax ((parsed-evaluated-args
>                (datum->syntax #f (cons 'list 
> (optimizer-parse-square-brackets-arguments-lister
>                                               (syntax->datum 
> #'args-brackets))))))

That should work, but it's also non-hygienic. For example, it will
be affected if the user does

(let ((list ...))
  (call-your-macro ...))

and since you use #f in the datum->syntax call, it will also strip away
all hygiene annotations from the args-brackets, causing problems inside
that as well.

I'd advise you refactor your optimizer-parse-square-brackets-arguments-lister
function so that it takes #'args-brackets instead of (syntax->datum 
#'args-brackets)
and works with it in a hygienic way.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]