Comment 3 for bug 309223

Revision history for this message
Michael D. Adams (mdmkolbe) wrote :

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