[plt-scheme] Struct Printer

From: Ed Cavazos (proteus at theworld.com)
Date: Thu Jun 19 06:29:37 EDT 2003

Is there an existing mechanism for designating a struct-type specific
print function? Common Lisp's defstruct let's you specify one via the
":print-function" argument. Scheme48 has
define-record-discloser. Something to that effect...

My current experimental solution is modeled after the "Dispatch Table"
notion from Common Lisp. I've got a hash table that maps struct-types
to print functions. Of course, it only works if the types are


Posted on the users mailing list.