SRFI 227: Optional Arguments

by Marc Nieper-Wi├čkirchen (spec and R6RS implementation) and Daphne Preston-Kendal (R7RS implementation)

status: draft (2021-08-25)

keywords: Binding

Abstract

This SRFI specifies the opt-lambda syntax, which generalizes lambda. An opt-lambda expression evaluates to a procedure that takes a number of required and a number of optional (positional) arguments, whose default values are determined by evaluating corresponding expressions when the procedure is called.

This SRFI also specifies a variation opt*-lambda, which is to opt-lambda as let* is to let and the related binding constructs let-optionals and let-optionals*.