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

That's one major reason why I don't like C++. I think the concept of header and implementation files is fine, but idiomatic C++ code basically makes it broken. Surely a class should go into the implementation file? (Internal) Types belong into the implementation, what belongs into headers are interfaces and function signatures. A class is a type, so it does not belong into a header file.


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

Search: