3 ms·
-To hide implementation details from users of the library. We don't want to unnecessarily expose functions -Reduce the amount tests, as the private functions wo
by blacksoil 4y ago
-To hide implementation details from users of the library. We don't want to unnecessarily expose functions
-Reduce the amount tests, as the private functions wouldn't have to be explicitly tested
- moffkalast 4y agoIt probably also lets the compiler do more optimizations than it otherwise would've, but that's just a guess and largely compiler dependent. Outside of library usage though? Mostly counterproductive in my experience.