[racket] beginner question about macros

From: Răzvan Rotaru (razvan.rotaru at gmail.com)
Date: Mon Dec 5 09:46:07 EST 2011

On 5 December 2011 16:39, J. Ian Johnson <ianj at ccs.neu.edu> wrote:
> Your textual manipulation of identifiers is unhygienic. You will need to do the following
>
> (with-syntax ([newX (datum->syntax #'x (translate-symbol (syntax-e #'x)))])
>  ...use-of-newX...)
>

Why it is unhygienic? Because newX doesn't exist in the macro
environment, but only in the caller environment?

Razvan



Posted on the users mailing list.