Hacker News new | ask | show | jobs
by jstimpfle 429 days ago
There's a big issue with C++ classes -- or rather methods. You need to list the entire class definition to expose public methods. That includes private members and private methods. This breaks encapsulation, exposing implementation details and their dependencies in the public header. This in turn leads to looong compile times and needless recompilations.
1 comments

Hence modules, and yes I know there are still some issues to sort out.