[r6rs-discuss] About record types

John Cowan cowan at ccil.org
Fri Sep 22 16:35:09 EDT 2006


Stanislav Ievlev scripsit:
> Let's discuss records:
> 
> The record type descriptor constructor with 6 parameters is an overkill.
> A minimum one parameter "opaque?" may be moved out it.
> 
> We can move this flag to the fields, e.g.:
> ((immutable a) (mutable b #t) ...)
> 
> from R6RS:
> "Thus opasity as presented here can be used to enforce abstraction barriers."

Opacity is not the same as immutability.  Opacity means that you can't
even find out what fields there are.

-- 
Even a refrigerator can conform to the XML      John Cowan
Infoset, as long as it has a door sticker       cowan at ccil.org
saying "No information items inside".           http://www.ccil.org/~cowan
        --Eve Maler



More information about the r6rs-discuss mailing list