Hacker News new | past | comments | ask | show | jobs | submit login

One reason is that other test might need the production version. Building twice for that case is more of a pain and not really worth it.



I mean, then you can avoid it in that situation. Or actually use the production version like I explained here: https://news.ycombinator.com/item?id=17505358 Or find another way to use it. It's not all-or-nothing.


Yes that works, but relies on devirtualization in the production code, and isn't at all what you were suggesting before about having separate implementation files.


Have you seen this in use in a real project?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: