4 ms·
In my experience, many things that are trivial in C/C++ are unfortunately subtly wrong, especially involving threads. It's a shame that your C or C++ experienc
by guitarbill 4y ago
In my experience, many things that are trivial in C/C++ are unfortunately subtly wrong, especially involving threads.
It's a shame that your C or C++ experience doesn't translate to Rust. For me a lot of things just clicked in Rust. Although there certainly was the occasional "why can't I just do this?" that took much longer to reason all the way through. It's maybe something Rust tutorials need to be better at, or maybe there ought to be tutorials specifically for e.g. C++ folks?
For better or worse, Rust gives you the choice (& vs Arc, etc), and it's yours to make. These choices are fatiguing to make if you aren't used to them (I believe C/C++ is similar for newcomers). In the long run, making those choices explicit is where Rust really shines in codebases IMO.
Nothing wrong with using Golang if it works for you. I sometimes wish for a middle ground between Python and Rust, but Golang isn't for me.