Re: [racket-users] Re: Trouble with recursive lambda macros, using Y combinator

2016-09-11 Thread Jens Axel Søgaard
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)

[racket-users] Re: Trouble with recursive lambda macros, using Y combinator

2016-09-11 Thread Vasily Rybakov
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