-
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
associated type syntax mismatch between PR 731 and the design docs #1099
Comments
Just to note, that example is from #1013 "Generics: Set associated constants using where constraints" -- the |
I don't see "let ElementType:! Type = T;" in the current design. I think the design is correct here, and reflects the proposal evolution. |
Ok, then the link to outdated rationale should be removed. |
On further thought, I'm concerned about this change to using |
#731 is out of date, superseded by #1013 . Is there text in the design doc that I missed updating that I should fix, other than the text in https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p0731.md ? |
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the |
In PR 731 (https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p0731.md#syntax-for-associated-constants) it says that the syntax for specifying an associated type for an impl is to use
let
. As in the following example:However, in the design documents (https://github.com/carbon-language/carbon-lang/blob/trunk/docs/design/generics/details.md#associated-types), there's this example that is using a
where
clause to specify an associated type:Which one of these is correct?
The text was updated successfully, but these errors were encountered: