Update the design docs for functions to reflect the lambdas proposal

Author: geoffromerCreated May 1, 2025Updated Sep 30, 2026
Labelsinactiveneeds design doc updatedocumentation

#3848 introduced some changes to the design of named functions, as part of generalizing them to encompass lambda expressions. For example:

  • They can take positional parameters instead of named parameters.
  • They can be defined with => expr; instead of -> ReturnType { body }
  • They can have captures.

Lambda expressions themselves were added to the design documentation in #5300, but docs/design/functions.md and docs/design/README.md should also be updated to reflect the changes to named functions.

Source: carbon-language/carbon-lang