3 ms·
They aren't equivalent in C++ either.
by im3w1l 7y ago
They aren't equivalent in C++ either.
- perfunctory 7y agoMy C++ is a bit rusty. Does it manifest itself in the standard library as well? The problem with python (in my view) is that this behaviour is implemented in the standard library and therefor propagates to the 3rd-party libraries by convention.
- zabzonk 7y ago> Does it manifest itself in the standard library as well? Yes. For example for std::string `a = a + b;` will (at least notionally) create a temporary string and then use the assignment operator. `a += b;` will not do this.