I think the required behaviour is almost like the 2nd example.
Here is how I think it should behave:
(let () (define-syntax x (let-syntax ([foo (identifier-syntax 12)]) (lambda (stx) #'foo))) x) => error "identifier out of context" 'foo
I think the required behaviour is almost like the 2nd example.
Here is how I think it should behave:
(let ()
(define-syntax x
(let-syntax ([foo (identifier-syntax 12)])
(lambda (stx) #'foo)))
x)
=> error "identifier out of context" 'foo