[plt-dev] overriding constructor style printing

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Mar 3 21:55:39 EST 2009

I've added `prop:print-converter' to `mzlib/pconvert-prop' in SVN. You
can use it like this:

 (define-struct unordered (elems)
    ....
    #:property prop:print-converter (lambda (v recur)
                                      `(bag ,@(map recur (unordered-elems v))))
    ....)




Posted on the dev mailing list.