3 ms·
The Rust team is lucky enough to have a dedicated person (Steve Klabnik) writing documentation and teaching, who, as previously mentioned, gets to see a lot of
by dbaupp 10y ago
The Rust team is lucky enough to have a dedicated person (Steve Klabnik) writing documentation and teaching, who, as previously mentioned, gets to see a lot of the ways in which people struggle to learn Rust and practice different approaches for teaching it. For the most part, the dark corners of the language implementation are filtered from the compiler hackers, through Steve and his experience, into the actual user-facing documentation.
I think the specific case you mention was a problem more caused by a desire to have some documentation for 1.0, even if it isn't perfect, rather than just leaving the feature undocumented. That page is originally[1] based on a blog post[2] that is targeting people who want to know how they work internally, and there wasn't much time before 1.0 for feedback, revision and iteration of it (there was one cycle, which improved it in the direction you want, but more is always better). The second edition[3] doesn't have the 1.0 crunch date, and benefits a lot from feedback on the existing teaching material (like yours here) and the extra experience the team has had teaching Rust, so, by all reports, does a much better job. (It doesn't seem to currently have anything about trait objects, but I'm sure it will soon.)
[1]: https://github.com/rust-lang/rust/commit/dbccd70a5736fd2e898b446e6c5f3da5d17538c6 https://github.com/rust-lang/rust/commit/dbccd70a5736fd2e898...
[2]: http://huonw.github.io/blog/2015/01/peeking-inside-trait-objects/ http://huonw.github.io/blog/2015/01/peeking-inside-trait-obj...
[3]: http://rust-lang.github.io/book/ http://rust-lang.github.io/book/
- steveklabnik 10y agoYes, this is true. (And the second edition will have trait objects in it, it's not there yet though.)