[racket] variant of struct-out that excludes constructors?

From: Jon Zeppieri (zeppieri at gmail.com)
Date: Sat Aug 27 14:22:23 EDT 2011

The language of unit signatures
(http://download.plt-scheme.org/doc/4.2.1/html/reference/define-sig-form.html)
has an #:omit-constructor keyword option for the 'struct' subform, but
provide's 'struct-out' subform has no corresponding option. Does this
exist in some library somewhere? Specifically, it would be useful to
be able to export (easily, without enumerating all of the
non-constructor identifiers) a struct, including the structure type
information bound to the struct-type's id (so it could still be used
in a match pattern, for example), without exporting the constructor
(or extra constructor). Has someone already done this?


Posted on the users mailing list.