Skip to content

Update the design docs for functions to reflect the lambdas proposal #5398

@geoffromer

Description

@geoffromer

#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    design updateAction items to update docs/design based on approved proposals and leads decisionsdocumentationAn issue or proposed change to our documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions