Next: srfi records spec, Previous: srfi records abstract, Up: srfi records [Index]
Many Scheme implementations provide means for creating new types,
usually called either records or structures. The
DEFINE-RECORD-TYPE
syntax described here is a slight
simplification of one written for Scheme 48 by Jonathan Rees. Unlike
many record–defining macros or special forms, it does not create any
new identifiers. Instead, the names of the record type, predicate,
constructor, and so on are all listed explicitly in the source. This
has the following advantages:
syntax-rules
macro in Scheme
implementations that provide a procedural interface for creating record
types.