[racket] Syntax objects in prefab structures

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Fri Nov 28 09:55:58 EST 2014

2014-11-28 15:45 GMT+01:00 Matthew Flatt <mflatt at cs.utah.edu>:
> Prefab structures are tested like pairs, vectors, and boxes in syntax
> objects. For example, `datum->syntax` and `syntax->datum` can recur
> into a prefab, but they don't go into transparent structures.
>
> If you add a list to your list of two structures,
>
>  (set! structs (list (list #'foox) (foo #'foox) (bar #'barx)))
>
> then you'll see that the prefab's content is treated the same way as
> the list content.

I guess I need to stop thinking of prefab structures as (just)
non-generative structs.

/Jens Axel

Posted on the users mailing list.