Re: [racket] dynamically auto-initialized private struct fields

2013-11-12 Thread David T. Pierson
On Sun, Nov 10, 2013 at 12:36:13PM -0500, Matthias Felleisen wrote: > > Have you considered classes instead of structs? -- Matthias Matthias, Thanks for the response. Classes did cross my mind, but in the particular use case I'm working on now, they feel a little too heavy. Perhaps that is a r

Re: [racket] dynamically auto-initialized private struct fields

2013-11-10 Thread Matthias Felleisen
Have you considered classes instead of structs? -- Matthias On Nov 9, 2013, at 12:50 PM, David T. Pierson wrote: > Hi all, > > Sometimes when defining struct types it is useful to have fields which > are essentially "private" to the module (fields whose accessors/mutators > are not exported f

[racket] dynamically auto-initialized private struct fields

2013-11-09 Thread David T. Pierson
Hi all, Sometimes when defining struct types it is useful to have fields which are essentially "private" to the module (fields whose accessors/mutators are not exported from the module.) I want these fields to be initialized automatically with arbitrary values generated at construction time. Here