|
From: | Maxime Devos |
Subject: | RE: Lexically bound macro, with lexically bound transformer |
Date: | Fri, 26 Jul 2024 09:56:57 +0200 |
Sent from Mail for Windows From: spacecadet > I think the guile-user list might be more appropriate. Noted > (let-syntax ((outer (lambda (x) #'(+ 1 2)))) > (let-syntax ((inner (lambda (x) (outer x)))) > (inner))) That works, but I guess this isn't possible then (lambda* (#:key outer) (let-syntax ((inner outer)) (inner ...))) Since that would require evaluating run-time code at compile-time >Is there a way to write a macro that's expanded at run-time? With (local-eval #'(insert _expression_ to be done at run-time) (the-environment)), yes. Caveat (from manual): >Note that the current implementation of The question is: why would you do that? Best regards, Maxime Devos |
[Prev in Thread] | Current Thread | [Next in Thread] |