Pretty-printing records
Per Bothner
per@bothner.com
Tue Jan 1 03:33:00 GMT 2019
On 12/31/18 6:58 PM, Duncan Mak wrote:
> Hello,
>
> Is there an extension to Kawa that will allow SRFI 9 records (or other
> records?) to have a nice pretty-print in the REPL?
It woudl be easier for make-record-type records, since printing those
already prints out the fields. So it's just a matter of checking for
classes that extend kawa.lang.Record.
Something similar could be done for SRFI-9 records, but it might take some changes
in how they are implemented, to better support introspection. Using Java
reflection is possible, though maybe expensive.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Kawa
mailing list