SRFI 88: Keyword objects

by Marc Feeley

status: final (2007/7/3)

See also SRFI 89: Optional positional and named parameters and SRFI 177: Portable keyword arguments.

Abstract

This SRFI defines keyword objects, a data type similar to Scheme symbols. Keyword objects have the same lexical syntax as symbols but they must end in a colon. Moreover keyword objects are self-evaluating. Procedures for converting between strings and keyword objects (string->keyword and keyword->string) and a type predicate (keyword?) are defined. Finally this SRFI specifies the changes to the Scheme lexical syntax required to accomodate keywords.