The question is: why would you do that?
Why not? :)
I'm trying to create a functional module system (similar to nixpkgs/nixos),
where modules are functions, imports are arguments, and exports are just the
return of the function.
Seems like scheme macros can't really work like that, although th
Sent from Mail for Windows
From: spacecadet
Sent: Wednesday, 24 July 2024 19:11
To: Taylan Kammer; guile-devel@gnu.org
Subject: Re: Lexically bound macro, with lexically bound transformer
> I think the guile-user list might be more appropriate.
Noted
>(let-syntax ((outer (lam
On 24.07.2024 19:10, spacecadet wrote:
>> 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
>
> (lamb
> I guess the right answer is to use functions instead of macros?
if you're not sure about the answer, then it's most probably yes.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“The only way to deal with an unfree world is to become so absolutely free that
your very existence is an ac
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 ..
On 24.07.2024 03:06, spacecadet wrote:
> Hi, I didn't see a help-guile list, I hope this isn't out of place
I think the guile-user list might be more appropriate.
> I'm trying to lexically bind a macro to a lexically bound transformer
> procedure
>
> (let ((outer (lambda (x) #''(
> (let-s
Hi, I didn't see a help-guile list, I hope this isn't out of place
I'm trying to lexically bind a macro to a lexically bound transformer procedure
(let ((outer (lambda (x) #''(
(let-syntax ((inner outer))
inner))
This is producing an error
"reference to identifier outside its scope in