[racket] Use of "struct:"

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Fri Jan 27 19:31:30 EST 2012

At Fri, 27 Jan 2012 18:41:27 -0300,
Paul Leger wrote:
> 
> Hi all,
>     A simple question. I try typing the following example
> (module nest racket
>     (provide (struct-out egg))
>     (struct egg (color wt)))
> 
> in this way
> (module nest typed/racket
>     (provide (struct-out egg))
>     (struct: egg ([color : String]  [wt : Number])))
> 
> But I get:
>    module: identifier already provided (as a different binding) in: egg

`struct:' does not work well with struct exports yet. `define-struct:'
should work.

Vincent

Posted on the users mailing list.