News for hackers. Stuff that matters.
Re:C23 is finished: Here is what is on the menu by j-krieger on Saturday August 06, 2022 @03:22AM (#32365802)
The benefit is a nice mental model of where what function lives (if you don‘t overdo it). This type of packaging also lends itself to module systems, a thing I desperately wish for in C
Re:C23 is finished: Here is what is on the menu by jstimpfle on Saturday August 06, 2022 @08:57AM (#32367680)
This type of "packaging" is completely orthogonal to module systems. It's merely a syntactic discipline that adds one more complication to deal with even where it has zero benefit.

You could say that the C/C++ systems already has "modules" if you look at object files and header files. Of course, they are a limited kind of modules because they are a bit low-level and C has the preprocessor problem, making it slow to "import" modules. But none of that has to do with namespaces.