-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Tutorial additions, restructuring, simplification #4240
Conversation
Has to be moved until after the pointer discussion. /cc: rust-lang#4217
This takes up a lot of words and isn't very clear. The previous discussion gets they idea across. /cc: rust-lang#4217
It's not interesting /cc: rust-lang#4217
We can mention that constants are declared with 'const' in one line. Don't need an entire section.
r+ from where I stand. I'm a little ambivalent about the losses of the types, constants and semicolon discussions, but can also see them as distracting and/or too verbose, which I assume was why you removed them. |
We can write a trait declaration that _inherits_ from other traits, called _supertraits_. | ||
Types that implement a trait must also implement its supertraits. | ||
|
||
For example, we can define a `Circle` trait that only types that also have the `Shape` trait can have: |
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.
typo? I'm not sure what the intent is here...
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'll try to reword.
@graydon I've heard criticism that the tutorial takes to long to get to the interesting parts of Rust, and I agree, so I was looking for big swaths to delete. |
Sorry I didn't get to reviewing this on time; I'm still on leave this week, though sporadically working on things. |
No worries |
run a few more concurrency tests on aarch64-linux-android
r? @TJC
This makes some significant changes to your work on static methods and trait inheritance, moving most of the static method discussion to the section on methods, adding explicit self everywhere, deleting a bunch of uninteresting and rote material from the syntax basics section and trying to reintegrate the most important parts in passing.
Because explicit self requires talking about pointers I broke the section on functions and methods into two sections. functions comes before pointers and methods comes after, just before generics.