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

Jean Abou Samra <[email protected]>
Newsgroups gmane.lisp.guile.user
Message-ID <[email protected]>
> (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.
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSZ7TKxnKGyBvBjzBmj8PYLiTOX/gUCZjil0wAKCRCj8PYLiTOX
/mY5AP9f52mAE50NtCwfpQZRfaO3g36N22TwDevsZbMsJ7Q5kwD+NSS3s9dP3Uxm
UfkDx7bg7yE9lHuCf/AP7XhaL6Rm0Qc=
=qqqB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.