Re: Lexically bound macro, with lexically bound transformer

2024-07-26 Thread spacecadet
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

Re: Lexically bound macro, with lexically bound transformer

2024-07-24 Thread 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 ..

Lexically bound macro, with lexically bound transformer

2024-07-23 Thread spacecadet
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