SRFI 9: Defining Record Types

by Richard Kelsey

status: final (1999-09-09)

keywords: Data Structure

See also SRFI 99: ERR5RS Records and SRFI 237: Reconciled Records.

library name: records


This SRFI describes syntax for creating new data types, called record types. A predicate, constructor, and field accessors and modifiers are defined for each record type. Each new record type is distinct from all existing types, including other record types and Scheme's predefined types.