Splitting implementation and interface in C++
Splitting implementation and interface in C++
Posted Feb 25, 2025 10:01 UTC (Tue) by farnz (subscriber, #17727)In reply to: Splitting implementation and interface in C++ by mathstuf
Parent article: Rewriting essential Linux packages in Rust
Sure, but I'm shipping full source anyway, and I can check for people exporting parts of the internal partition in CI, just as I'd have to have similar checks in place to stop people moving code from the interface module to the implementation module.
Remember that the goal here is one module, nicely structured for ease of maintenance, and thus split across multiple module units, with an internal module partition to make the stuff that's for internal use only invisible from outside the module, rather than multiple modules.
