Merge functions.md and lambdas.md design documents (#7425)

Implements suggestion from
https://github.com/carbon-language/carbon-lang/pull/7355#discussion_r3416055969
.

Assisted-by: Gemini via Antigravity

---------

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
josh11b
2026-06-29 18:24:16 +00:00
committed by GitHub
co-authored by Josh L Geoff Romer
parent e4b0903d2e
commit 73744544fc
4 changed files with 417 additions and 543 deletions
@@ -89,7 +89,7 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Reference bindings have come up multiple times:
- as a better alternative to `addr self: Self*`;
- for use in [lambda captures](/docs/design/lambdas.md);
- for use in [lambda captures](/docs/design/functions.md#captures);
- to model different kinds of C++ references for interop and migration;
- to support nested bindings within a destructured `var`, see
[issue #5250](https://github.com/carbon-language/carbon-lang/issues/5250)