-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Guide: edit Generics and Traits sections #19625
Conversation
Before reading this, I just want to say that I'm wary of copy-editing that changes the tone significantly. I've gotten a lot of positive feedback on how different the Guide is from other programming texts, and I'd like to keep it that way. On to the review! 🎊 |
This is really unfortunate. Luckily, Rust has a feature that gives us a better | ||
way: generics. Generics are called **parametric polymorphism** in type theory, | ||
which means that they are types or functions that have multiple forms ("poly" | ||
is multiple, "morph" is form) over a given parameter ("parametric"). |
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.
What's the reason for removing the explanation of the word?
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.
I was thinking the guide's audience is expected to know what polymorphism is.
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.
Fair enough.
Some nits, but this looks great overall. Thank you! |
Needs a rebase |
Mostly copy-editing, clarification---in particular, monomorphization
Ah, ninja'd the commits in without a comment. @steveklabnik r? |
Nothing major. Clarification, copy-editing, typographical and grammatical consistency
Nothing major. Clarification, copy-editing, typographical and grammatical consistency