Pretty-printing records
Per Bothner
per@bothner.com
Tue Jan 1 20:05:00 GMT 2019
On 12/31/18 7:32 PM, Per Bothner wrote:
> 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.
It turned out to be relatively simple to change SRFI-9 records so they
extend kawa.lang.Record. This fixes printing of the resulting records.
This doesn't accomplish pretty-printing, but that should also be fairly simple.
Probably best by having kawa.lang.Record implement gnu.kawa.format.Printable.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Kawa
mailing list