Probably, particularly in terms of writing correct code.
But C++ allows me to really easily write multithreaded code which I can convince myself is safe :) (and most of the time, is correct, just not on the edge cases). Rust makes that painful.
> Probably, particularly in terms of writing correct code.
package management, build system, compiler errors, language simplicity (yes, it adds life times, but removes so many other things), Rust macros, language ergonomics (e.g. match, macros, enums, async, if let, etc.), not having to think about certain things going wrong (including not debugging why things went wrong)
> Rust makes [multithreaded code] painful.
Andreas Kling is switching away from C++ to Rust in Ladybird, because of exactly the reversed experience.
I have been using asynchronous multithreading via tokio - something I never dared to in C++.
Alone from the compiler errors I have got doing that, I would assume that I would have been dealing with an unbearable amount of debugging of subtle memory issues.
> Probably, particularly in terms of writing correct code.
package management, build system, compiler errors, language simplicity (yes, it adds life times, but removes so many other things), Rust macros, language ergonomics (e.g. match, macros, enums, async, if let, etc.), not having to think about certain things going wrong (including not debugging why things went wrong)
> Rust makes [multithreaded code] painful.
Andreas Kling is switching away from C++ to Rust in Ladybird, because of exactly the reversed experience.
I have been using asynchronous multithreading via tokio - something I never dared to in C++. Alone from the compiler errors I have got doing that, I would assume that I would have been dealing with an unbearable amount of debugging of subtle memory issues.