|
|
|
|
|
by simonask
188 days ago
|
|
Comparing type systems is difficult, but the general experience is that it is significantly easier to encode logic invariants in Rust than in C++. Some of the things you can do, often with a wild amount of boilerplate (tagged unions, niches, etc.), and some of the things are fundamentally impossible (movable non-null owning references). C++ templates are more powerful than Rust generics, but the available tools in Rust are more sophisticated. |
|