-
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
First draft of structs design doc #98
Conversation
to capture the value of `foo`, perhaps you have to do something like | ||
`typeof(foo).Bar`? | ||
|
||
**Open question:** Instead of making this member function calling syntax |
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.
I prefer this approach. I provides a more clear way for the programmer to express their intent.
We triage inactive PRs and issues in order to make it easier to find active work. If this PR should remain active, please comment or remove the |
We triage inactive PRs and issues in order to make it easier to find active work. If this PR should remain active or becomes active again, please reopen it. |
Carbon will have two ways of letting users define product types: structs and
tuples. Structs are the more full-featured of the two; they may have names,
methods, etc. This proposal adds an initial design for structs.