Brian Anderson <[email protected]> writes:

> Hi.

Hi,

> I've been convinced recently that Rust is missing crucial
> documentation of a particular nature: using Rust in practice. I would
> like to have such a standalone guide, and these are some ideas about
> what should be in it.
>
> This is a guide that runs through creating an entire Rust project from
> installation, using the tools, writing code, through deployment,
> touching on the practical aspects of coding Rust, not glossing over
> whatever ugly bits are necessary to do real work.

As a newbie, I would love to read a tutorial on how to implement a basic
data structure but with non-trivial operation. For example, the current
tutorial shows a single linked list with two operations: eq and append.
But when I tried to implement some methods like a `push_back` or an
`insert` that keeps the list sorted I hit a wall (especially because I
wanted them iterative not recursive).

Maybe it is because I have done some C but almost no C++ and no "modern"
C++ at all (no smart pointers or RAII), but even though I've read the
Pointers and Lifetime&Reference Guides, I still have difficulties to
know how to manipulate objects because it requires a good understanding
of a mix of concepts (owned box/borrowed box/pointers + lifetime +
[im]mutability).

I understand more or less each of them individually, but in practice,
I'm mostly playing a "guess game" with the compiler.

To summarize, I think that a guide that shows how Rust fits "in the
large" is good, but it's especially good for people with a C++
background who want to know how Rust can replace C++ for big projects.

However, I think that people that are used to more high-level languages
(I'm mostly a Lisp guy) lack the "low bits" of Rust. But I also think
that it's this aspect of Rust that appeals to them, though I may be
generalizing my own feeling.

Best,
-- 
Daimrod/Greg

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to