Skip to content

Commit

Permalink
Add statement syntax for function declarations (#438)
Browse files Browse the repository at this point in the history
Add statement syntax (either `fn` or `func`, see proposal) for function declarations.

- Follows C++-style trailing return syntax.

Co-authored-by: Geoff Romer <gromer@google.com>
Co-authored-by: josh11b <josh11b@users.noreply.github.com>
  • Loading branch information
3 people authored May 19, 2021
1 parent 93dfe86 commit aeb4a15
Show file tree
Hide file tree
Showing 2 changed files with 472 additions and 0 deletions.
1 change: 1 addition & 0 deletions proposals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ request:
- [0353 - `for` loops](p0353.md)
- [0415 - Syntax: `return`](p0415.md)
- [0426 - Governance & evolution revamp](p0426.md)
- [0438 - Functions](p0438.md)
- [0444 - GitHub Discussions](p0444.md)
- [0447 - Generics terminology](p0447.md)

Expand Down
Loading

0 comments on commit aeb4a15

Please sign in to comment.