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

There's precedent for this sort of thing in C++, the move semantics are added on top of this: https://en.wikipedia.org/wiki/Return_value_optimization If you are depending on code in the constructor of an object, this optimisation can catch you out.


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: