Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My 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.


> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: