4 ms·
That’s just poor software. A poor Rust dev would be one who clones everything.
by secondcoming 4y ago
That’s just poor software. A poor Rust dev would be one who clones everything.
- seritools 4y ago`.clone()` is visible right in your code, though, unlike the implicit conversion/constructor magic.
- sseagull 4y agoBut you could write a C++ class with a manual .copy() method and a deleted copy constructor (and other conversion constructors not implemented). Doing that seems a bit easier than integrating a whole new language into your project (although I know Rust would have other benefits).
- TheCoelacanth 4y agoYou could do that if you are the author of std::string. Unfortunately, very few of us are.