Hi,
What should be the output of this code:
(define (print x . rest)
(apply display x rest)
(newline))
(define-syntax foo
(syntax-rules ()
((_ body ...)
(begin
(syntax-parameterize
((it (syntax-rules ()
((_) "hello world"))))
(print it)
body ...)))))
(let ((it 10))
(foo (print it)))
I only tested in two implementations Chibi and Guile.
Guile give an error but Chibi first print 10.
My implementation prints 10 10.
Jakub
--
Jakub T. Jankiewicz, Senior Front-End Developer
https://jcubic.pl/me
https://lips.js.org
https://koduj.org