I am in the process of learning rust by creating software for my own use.
While the borrow checker feels like “fighting the compiler” at times (it took me a week before it started to land, and i have used my share of programming languages!), you will learn.
I compare this to the C world where you can have quite complex constructs with pointers and references. That used to be hard as hell as well. Until it clicks.
The only difference is that in C land, your software will segfault during runtime. In Rust your code will complain during compilation.
Rust without borrow checker is just a bad version of C in my opinion. Rust with borrow checker actually brings value.
In rust it is still possible to make circular references and cause memory leaks but it is very less likely.
So: i understand where you are coming from but give it a chance to land. I am glad I did.
The only thing which is bothering me at times is that the Rust community can come across as highly unfriendly/intolerant at times (comparable to the scala community, which in effect killed the adoption of scala).
The response to your comment should not have been burning it to the ground but to ask why the borrow checker does not click for you.
I can highly recommend the series “lets get rusty” on YT from Bogdan. He is explaining the main constructs in very easy to follow instructions videos.
Have a look and see if it makes it work for you!
It is just because people are sensitive. Period.
His comment should be read as “I don’t get the borrow checker”.
Response of the Rust community: “lets vote him to oblivion”.
Response should be: what part of it is not clear, hand him reference material etc.
This was the same with scala (which has its userbase cut in 1/10th of what it is). Scala is now almost extinct.
I would hate for Rust to become the next Scala because it offers so much nice features (for me that is native binaries) among others.
I’ve had my share of response to honest questions which resulted in comments that I should be using language X, or that I have some nice term wrong (which does not relate to the problem I was experiencing), I am asking the wrong question and so on.
Luckily there also were helpful comments, which kept me in the Rust ecosystem.
The other behaviour is not productive and just makes Rust look like a niche, elite and too hard language.
Be nice to each other. It will only make Rust and its community stronger.