Just pasting my answer from the Reddit thread to the same question:
I think that section is nice from a purely syntactic perspective, but I am missing a “middle ground” between the book’s tutorial-style, and this rather “syntactic” appendix.
The Keyword section looks like it’s delivering that, which is why I’m so happy about it.
I would love them (and “Sigils” / “constructs”), target mid-stage developers who know the basics (possibly coming from another language), and need a concise refresher how in Rust these particular concepts work out.
For example the Section |x| should target a developer saying “I know what a closure is in C++ / Python, but can you explain how it works in Rust in two pages or less with mostly bullet points?”
Does this come close to what you want?
I think my proposal comes from wanting a particular level of style, and being confused about the direction or content of the std docs.
- The std docs have so far been a reference for types, methods and other “pre-assembled” content
- At the same time, the writing style is succinctly “hands on”, without reiterating the obvious, but listing all important things one needs to know
Now with Keywords added they enter “language construct” territory; async, crate, dyn, … being in a different class than u32 and Deref.
Personally I don’t mind them being included, as I always wanted a place to look these things up, and std docs had the perfect style for my taste (with the book being too tutorial-ish, and the reference often being like “before we explain how a struct works, here are 2 pages of grammar”).
However, with them being included, I was just also hoping for “the rest” to be documented in a similar style to the rest of std docs. A “hands on” explanation for all things that are neither pre-assembled, nor keywords, but all the sigilic constructs you might find in someone else’s code, or might want to use yourself.