Comment by gmueckl
24 days ago
The feature parity question goes both ways: rust won't ever be able to express some things that are possible in C++.
24 days ago
The feature parity question goes both ways: rust won't ever be able to express some things that are possible in C++.
Like?
Algorithms that safely mutate the same data structure on multiple threads and do so safely because of some complex algorithmic properties that guarantee that the changes do not overlap?
Rust can do that just fine. https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell..... "some complex algorithmic properties that guarantee that the changes do not overlap" are exactly the place to use unsafe and encapsulate it.
If you mean things that formally create a data race, then C++ cannot do that either.
Why can Rust not do that?
7 replies →