[racket-dev] local-transformer-expand behavior
Hi all,
Does anyone know what the behavior of
(local-transformer-expand #'(define x 3) 'top-level null)
should be? I'm not sure, but I expected something like what
`local-expand` would do. Instead, I get an error like this:
> (define-syntax (m stx)
(local-transformer-expand
#'(define x 3) 'top-level null))
> (m)
; readline-input:14:51: define: not allowed in an expression context
; in: (define x 3)
; [,bt for context]
Am I just misuing the function? I also tried to wrap the quoted
definition with a `let`, but then got errors saying `let-values` is
unbound (which seems odd since it's a core form).
Cheers,
Asumu