-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Document lambdas #5300
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
Document lambdas #5300
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
…to trunk syncing trunk for PR
…to trunk syncing trunk...
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.
Looking quite close to ready!
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
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.
Looks good! There is one thing I missed before but I'm fine with this going in with or without that change.
Co-authored-by: josh11b <[email protected]>
|
||
```carbon | ||
// In a variable: | ||
let lambda: auto = fn => T.Make(); |
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.
This document uses fn =>
here and fn ->
below, I assume one of those isn't correct?
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.
Oh, never mind! I see this gets explained.
Moved everything from "Syntax Overview" through "Self and Recursion" in https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p3848.md to docs/design and added the link to it in README.md
Still needs a short summary for the README
Closes #4898