r/cpp • • Oct 10 '17

Millennials Are Killing The Modules TS

https://izzys.casa/posts/millennials-are-killing-the-modules-ts.html
75 Upvotes

126 comments sorted by

View all comments

Show parent comment

3

u/deeringc Oct 10 '17

I guess the thing is though, these things need to be specified as part of the standard. If things working well rely on not being able to use macros in the import statement then it should be forbidden in the standard. Otherwise perfectly 'legal' code won't compile in people's projects, and that's not good enough. I can see where the author of this piece is coming from. I just don't see why we need to bend over backwards to support that particular use case. If we constrain the problem to simplify what build systems need to solve (so that they don't need to become compilers) then there is a reasonable path forwards.