SRFI 9: Defining Record Types

by Richard Kelsey

status: final (1999-09-09)

keywords: Data Structure

See also SRFI 99: ERR5RS Records, SRFI 237: R6RS Records (refined), and SRFI 256: Minimal extension to SRFI 9/R7RS small record type definitions for inheritance.

library name: records

Abstract

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.