3 ms·
So for those use cases where you will be using a library with custom types anyway, choose one that doesn't overload the operators for those types? This very muc
by hobofan 6y ago
So for those use cases where you will be using a library with custom types anyway, choose one that doesn't overload the operators for those types? This very much seems like a problem on the library- and not the language-level.
- Ar-Curunir 6y agoAlso, in Rust if you don't want to use the overloading, you can still write your code to directly use function calls `a.add(b)`, where `a` is a type that implements the `Add` trait.