SRFI 177: Portable keyword arguments

by Lassi Kortela

status: draft (2019/10/16)

See also SRFI 88: Keyword objects and SRFI 89: Optional positional and named parameters.


Many Scheme implementations have keyword arguments but they have not been widely standardized. This SRFI defines the macros keyword-lambda and keyword-call. They can be used identically in every major implementation currently in use, making it safe to use keyword arguments in portable code. The macros expand to native keyword arguments in Schemes that have them, letting programmers mix portable code and implementation-specific code.