[racket] Are there Racket structures similar to Common Lisp's?

From: Rouben Rostamian (rostamian at umbc.edu)
Date: Fri Aug 17 00:09:34 EDT 2012

Is there the equivalent of Common Lisp's /structure/ type in
Racket?  I looked through Racket's User Guide and Reference
manuals but did not see something similar, although it's
quite possible that I saw one but did not recognize it.

Specifically, here is what I want.  Consider the Common Lips
definition of a /person/ structure:

(defstruct person

Then create an instance:

(make-person :age 35
             :favorite-color "blue"
             :name "Bob")

The latter echos:


Let's note that the order of fields when invoking /make-person/
need not be the same as the order in which the /person/
structure is defined.

Furthermore, since /waist-size/ was not specified at invocation,
it was assigned NIL.

Rouben Rostamian

Posted on the users mailing list.