Customisable printer for SRFI-9 records
Brought to you by:
mradestock,
scgmille
Currently records are printed in a very ugly way. I
don't really care about that as such, but I'd like to
be able to customise record printing, at least for my
own SRFI-9 record types. Ideally, I'd be able to
customise the default record printer, as well, but
that's a less important issue.
Chicken provides:
(define-syntax define-record-printer
(syntax-rules ()
((_ (record-type-name instance port) body ...)
(<some means of installing the following lambda in
a table against record-type-name>
(lambda (instance port)
body ...)))))
Where "instance" and "port" are bound appropriately
during the execution of "body ...".
Logged In: YES
user_id=141002
Exact compatibility with chicken would be useful. Once
implemented, this can be SRFI-ised straightforwardly.