Hacker News new | ask | show | jobs
by radub 3649 days ago
Thank you!

Making everything public runs the risk of other modules using internal implementation details, and that entanglement makes changing things a lot harder.

For a small project where you can easily control this, it's likely not an issue. But we are big enough that no one person knows all the code changes that are going on in all modules.

Exported vs non exported also serves as implicit documentation, it makes understanding things easier when you can tell right away what is internal and what is not.