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

Inlining getters should not cause crazy stability bugs.

I'm also a former game developer and I see both sides of it.

To be honest one thing that I think is true is it's probably not some hacker's fault - the marketing and politics BS that goes on with respect to choice and support of platform when making AAA games is really horrible sometimes.



Even if you assume the compiler is perfect and only making semantically valid transformations, changing performance characteristics often changes your odds of hitting race conditions.


throw new BathwaterException(new Baby()) ?


No no no. Always throw by value, and catch by reference. Like this:

  throw BathwaterException(Baby());
Wait, we are talking about C++ programming, right? ;)




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

Search: