-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Allow using Self
in impls
#12600
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
Comments
Fully back-compat, certainly not a 1.0 priority. |
This would essentially involve adding a "hidden" type parameter in every impl. |
Is there really a need for another magic type parameter? |
Sure that could work On Thu, Feb 27, 2014 at 3:30 PM, Eduard Burtescu
|
As @eddyb said, I think this is basically syntactic sugar, and I have no particular problem with it. I think the main reason not to do it (and the reason we didn't before) is so as not to obscure the role of |
+1 to all of what Niko said. In particular, I do like the sugar being suggested here. But at the same time, I noticed that in a recent rust-dev post, @anasazi used the notation |
This should probably go through the new RFC process. @cmr are you going to submit one? Can we close this issue? |
I suppose I can write one later this week. |
On Mon, Mar 24, 2014 at 04:10:00PM -0700, Flavio Percoco Premoli wrote:
Agreed |
This issue has been moved to the RFCs repo: rust-lang/rfcs#310 |
This is convenient because it allows you to copy-paste trait declarations.
The text was updated successfully, but these errors were encountered: