Hacker News new | ask | show | jobs
by imtringued 2020 days ago
The preprocessor is a big roadblock for C++ modules
2 comments

Arguably that's a problem that C++ brought onto itself, because it "encourages" to put implementation details into headers (in the form of inline methods and template code). In C it's common to only put public interface declarations into headers which results in headers being much smaller and much faster to parse (that's why a module system is much more important for C++ than for C).
Could you elaborate on that? Which features of preprocessor make it impossible to implement C++ modules?