I have heard this is a really good resource for understanding this exact aspect of Rust
Re:Go 2, here we come
by Dylan16807 on Thursday November 29, 2018 @06:19PM
(#18565120)
I have to ask why you're not using a data structure from a library, though.
You're not the only one having trouble writing basic data structures in safe Rust: [1]
[1] https://rcoh.me/posts/rust-linked-list-basically-impossible/
Of course, if you're comparing with Go, you need to compare apples to apples - since Go doesn't have ownership tracking, the equivalent Rust would necessarily have to be unsafe.
Yeah but Go has garbage collection. Rust's ownership model makes up for not having GC.
It has excellent package management, robust compiler messages, pattern matching... etc. But once I start trying to build non trivial data structures it becomes a nightmare. For example, doubly linked list, any sort of graph is extremely hard for me to build in rust but extremely easy to build in golang.
I am still learning the full capability of rust, hopefully as I do more practice it gets easier. In the worst case I think I would still use it to build data pipelines since I really enjoyed the syntax and the safety check as long as I don't get into smart pointers or raw pointers.
Also another annoying point is that some libraries use nightly.