Hi Vasily,
For completeness sake, note that you can use let-syntax and
make the macro expander do the work of substitute-syntax.
(require (for-syntax syntax/parse))
(define-syntax (recursion stx)
(syntax-parse stx
[(_recursion name (arg ...) expr)
#'( (λ (x) (x x))
(λ (name)
Also thanks to Jens and Sam -- your examples is valuable, I learned from them
(for example, how I can use (let) to bind variable that was defined before --
so it keeps previous binding in the definitions part of (let) but uses new
binding in the body part of (let)).
--
You received this messag
2 matches
Mail list logo