[r6rs-discuss] Was exporting records ever discussed?

Ryan Newton rrnewton at gmail.com
Thu Apr 24 14:49:24 EDT 2008


I'm surprised that I can't find anything on this in the archives.

As far as I can tell, with R6RS we have to keep up tradition (in
several Schemes) of explicitly exporting every
accessor/mutator/predicate/constructor for a (syntactic) record type
definition.  If this issue was discussed, I'd be interested to read
that discussion.

Unfortunately, it seems that macros can't save us here because there's
only one (export ...) clause right at the beginning of the library.
Otherwise we could perhaps have a define-type-and-export macro for use
at top-level within a library.  Further, it seems that based on the
definition of a top-level program that it isn't possible to replace
the library syntax itself with an extended version?

-Ryan



More information about the r6rs-discuss mailing list