-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add statement syntax for function declarations #438
Conversation
Co-authored-by: Geoff Romer <[email protected]>
…n-lang into proposal-functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comments. Just to be sure, if you think I'm pushing too far on forward declarations, please let me know -- it'd just come into my mind as I figured it was something I should cover, particularly as I was gathering examples and Carbon will be a bit of an exception for still having forward declarations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing a round of comment-based updates.
Updated to reflect the conclusion of #463 |
Co-authored-by: josh11b <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks great. Please proceed.
I was doing this for #851 initially, but I think #438 and #826 hadn't made it in (possibly intentionally due to #851? I don't recall). Co-authored-by: Chandler Carruth <[email protected]> Co-authored-by: Richard Smith <[email protected]>
Add statement syntax (either `fn` or `func`, see proposal) for function declarations. - Follows C++-style trailing return syntax. Co-authored-by: Geoff Romer <[email protected]> Co-authored-by: josh11b <[email protected]>
I was doing this for #851 initially, but I think #438 and #826 hadn't made it in (possibly intentionally due to #851? I don't recall). Co-authored-by: Chandler Carruth <[email protected]> Co-authored-by: Richard Smith <[email protected]>
Add statement syntax (either
fn
orfunc
, see proposal) for function declarations.