I am not sure whether I have asked this before, but is it possible to customize the result of writing or displaying a record type through Scheme code in Chibi?
--
You received this message because you are subscribed to the Google Groups "chibi-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibi-scheme...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibi-scheme/3a734940-34aa-4c4f-a111-0b32e9eb085dn%40googlegroups.com.
This question of mine was meant Chibi-specific.
Nevertheless... as for a general solution (which is yet to be standardized): If we just want to customize the printing of records, the procedure should become an optional part of the record-type definition as the record-type can function as its own registry.
I don't understand your comment about a generic record-write function and applying it retroactively.
--
that would make it portable. I'm uncertain whether display should be included or not.On Thu, Sep 24, 2020 at 12:33 PM Marc Nieper-Wißkirchen <marc....@gmail.com> wrote:I am not sure whether I have asked this before, but is it possible to customize the result of writing or displaying a record type through Scheme code in Chibi?--
You received this message because you are subscribed to the Google Groups "chibi-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibi-scheme...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibi-scheme/3a734940-34aa-4c4f-a111-0b32e9eb085dn%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "chibi-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibi-scheme...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibi-scheme/84b342d2-f239-4cb4-b86d-5cdb2e1b8dd4n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "chibi-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibi-scheme...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibi-scheme/CAEYrNrQKx95_-6FLGO7qLNUuMPAXPUF2mG%3DfHHH3itK21_TY6g%40mail.gmail.com.
I am not sure whether I have asked this before, but is it possible to customize the result of writing or displaying a record type through Scheme code in Chibi?
--
You received this message because you are subscribed to the Google Groups "chibi-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibi-scheme...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibi-scheme/3a734940-34aa-4c4f-a111-0b32e9eb085dn%40googlegroups.com.
>> Nevertheless... as for a general solution (which is yet to be standardized): If we just want to customize the printing of records, the procedure should become an optional part of the record-type definition as the record-type can function as its own registry.
> That's a possible, but not a necessary, approach. SRFI 9 define-record-type format is rather inelastic: its only virtue is its wide support.
I don't think that this is a major obstacle. We can easily invent
`define-record-type/writer' or, for further future extensions,
`define-record-type/options'. This doesn't touch the code where
records without printers are defined.