> I am almost tempted to implement something like Common Lisp's
> symbol-macrolet special form and eval the config file inside a big
> symbol-macrolet.
Well, if you are that, I can tell you that Guile already have that
functionality. :)
The code below causes
x --> Hi!
17
(define-module (test)
:use-module (ice-9 syncase))
;;; The following line enables macro expansion of all forms
(use-syntax syncase)
(define x-val 17)
(define-syntax x
(lambda (exp)
(syntax-case exp ()
(k (identifier? (syntax k)) (syntax (begin (display "Hi!\n")
x-val))))))