[plt-scheme] Using the struct type identifier as a macro [PATCH]

From: Dimitris Vyzovitis (vyzo at media.mit.edu)
Date: Mon Nov 17 03:14:15 EST 2008

On Sun, 16 Nov 2008, Dave Herman wrote:

> Does your patch also bind the struct name as an identifier macro so it can be 
> used in a higher-order fashion? E.g.:
>   (define-struct thing (symbol) #:prefab)
>   (map (compose thing string->symbol) '("a" "b" "c"))
>   ; =>
>   (#s(thing a) #s(thing b) #s(thing c))
> Dave

Not currently, but this is straightforward; I can add it.

-- vyzo

Posted on the users mailing list.