-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[SR-1340] Implement SE-0068: Expanding Swift Self
to class members and value types
#43948
Comments
Comment by Austin Zheng (JIRA) Given that this is marked as `StarterBug` and the semantics are pretty straightforward, I'd like to try my hand at it. |
Comment by Josef Willsher (JIRA) An initial implementation is in this PR: #3866 – we still need to implement allowing `Self` to refer to the dynamic type of non final classes. |
Comment by Austin Zheng (JIRA) Awesome! Do you mind if I reassign the ticket to you, joewillsher (JIRA User)? |
Comment by Josef Willsher (JIRA) Not at all, thanks |
Comment by erica sadun (JIRA) Since this went to radar, is it totally dead? How did it end up? |
Almost two years have passed, this proposal isn't implemented yet. Hmm. |
Comment by Noam Tamim (JIRA) Is there still a plan to implement this feature? When it was filed, the common "workaround" was |
Yes, it is still planned. It is a lower priority since it's not ABI, and we need to do some architectural changes to the type system before this feature can make sense for classes. |
I've put forward a PR that from a functional point of view is a contender to solve this problem even if it isn’t particularly elegant: #22863 |
Additional Detail from JIRA
md5: ed5a7fa460047035b11b171886828460
is duplicated by:
Issue Description:
"SE-0068: Expanding Swift `Self` to class members and value types" has been accepted:
https://github.com/apple/swift-evolution/blob/master/proposals/0068-universal-self.md
This bug tracks an implementation for it.
The text was updated successfully, but these errors were encountered: