-
Notifications
You must be signed in to change notification settings - Fork 2.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 Request] Parametrize Self on struct parameters #2628
Comments
I've thought about this in the past, but I don't think it's a good idea. The whole point of Also, |
And the use case is covered by conditional conformance I think. |
👍 It makes sense, thanks for taking the time to explain ! |
Review Mojo's priorities
What is your request?
Hello,
here is a feature request that seem useful:
It could also be useful with decayed reference but not sure !
What is your motivation for this change?
The motivation is to make struct more parametrizable in general,
the idea occurred to be me while trying to contribute a feedback on the Decayed lifetime proposal.
This could allow to convert a non-decaying one into a decaying one, in order to
__getitem()__
only the non decaying references.That way, only non-decaying references could be manually dereferenced, and decaying ones would be auto-dereferenced.
Not sure if it would work, but if it could be useful for that, it could be useful for many usecases.
Any other details?
No response
The text was updated successfully, but these errors were encountered: