4 ms·
> but there is a very great deal that can be put in a C++ library that is wholly beyond Rust's capacity. Just out of curiosity, do you have some examples?
by wtetzner 7y ago
> but there is a very great deal that can be put in a C++ library that is wholly beyond Rust's capacity.
Just out of curiosity, do you have some examples?
- ncmncm 7y agoThe 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