Brian Harvey scripsit:

> > The fight then will be about Unicode, case-sensitivity, modules,
> > and records no?
> 
> I believe that John Cowan has settled the Unicode problem in a way that
> will actually make everyone happy.  So, we're 25% of the way done!  :-)

I don't think there's anything to add to SRFI-9 as far as records for
Thing One are concerned, except a way to add a record-printer that
"display" and "write" would respect.  The obvious strategy is to
interpret the fourth argument, if it is an identifier rather than a
list, as the name of a procedure to be called when printing is required.
The resulting syntax is:

(define-record-type typename (constructor args ...) predicate [printer]
        (field-tag accessor [mutator]) ...)

Note that this is an "output" argument to define-record-type; it specifies
not a procedure to be generated, but one to be invoked.

Alternatively, we could provide separate syntax or even a procedure to
inform the reader what printer to use.

-- 
Said Agatha Christie / To E. Philips Oppenheim  John Cowan
"Who is this Hemingway? / Who is this Proust?   [email protected]
Who is this Vladimir / Whatchamacallum,         http://www.ccil.org/~cowan
This neopostrealist / Rabble?" she groused.
        --George Starbuck, Pith and Vinegar

_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to