2 ms·
The easy examples involve operator overloading. Some more subtle would involve template dispatching according to properties of the types operated on. But just
by ncmncm 7y ago
The easy examples involve operator overloading.
Some more subtle would involve template dispatching according to properties of the types operated on.
But just run down the list of features supported in C++, and not in Rust, and think about how they could change how a library interface or implemention would look. Most C++ features are meant for people writing libraries.
- iopq 7y agoRust has limited operator overloading. You can do common operations like arithmetic, but you can't define symbol soup