Just to be clear, would the following still be legal?
(let () (let-syntax ([foo (identifier-syntax 12)]) (define-syntax x (lambda (stx) #`(+ 3 #,foo)))) x) => 15
or would I still have to pull the define syntax to the outer layer like so?
(let () (define-syntax x (let-syntax ([foo (identifier-syntax 12)]) (lambda (stx) #`(+ 3 #,foo)))) x) => 15
Just to be clear, would the following still be legal?
(let ()
(let-syntax ([foo (identifier-syntax 12)])
(define-syntax x (lambda (stx) #`(+ 3 #,foo))))
x)
=> 15
or would I still have to pull the define syntax to the outer layer like so?
(let ()
(define-syntax x
(let-syntax ([foo (identifier-syntax 12)])
(lambda (stx) #`(+ 3 #,foo))))
x)
=> 15