-
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
Feature interface impl without cast #2628
Feature interface impl without cast #2628
Conversation
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.
Hi, nice to see you contributing again!
This change looks good to me, but I'm going to flag it for zygoloid since he's been working on this area and might have more insight than myself. :)
Co-authored-by: Jon Ross-Perkins <[email protected]>
The last months of last year and the first months of the new year are extremely stressful because of work. So I can not really participate in private projects. My family comes first! But I love this project and the community here! |
We intend to distinguish between two cases:
Prior to #995, that looked like this:
Under #995, the syntax for this has changed a little; the equivalent syntax after #995 is:
Conditional internal conformance, such as in your
example, is discussed in #2580. @chandlerc suggested that we might not want to allow it at all. If we do allow it, the leading syntax (option (3) in #2580, adjusted to match #995) is:
I think that for experimentation purposes it seems reasonable to implement option (3) from #2580 in explorer for now. Perhaps the best way to make progress here would be to change the [Edit: |
Just FYI, I think a minor correction to the above --
|
Hi, |
I've updated my comment to use |
Fixes carbon-language#2583. Note that this still results in a compliation error pending the merge of carbon-language#2628, this just prevents the assertion from happening.
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.
See prior discussion for requested changes.
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 This PR is labeled |
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. This PR was closed and archived because there has been no new activity in the 14 days since the |
Hello folks,
with this PR it is possible to write this Carbon code:
I hope it is usefull
Releated issues #2583 and #2580