[r6rs-discuss] About record types

From: John Cowan <cowan>
Date: Fri Sep 22 16:35:12 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
Received on Fri Sep 22 2006 - 16:35:09 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC