It also gives you a nice private namespace for the translation unit so you can confidently modify any of the static objects without concern for impacting external code.
I once had a gray beard chew me out over changing a function signature when revising things. I had to point out politely that it was static and that anyone who managed to link to the function had to be breaking a lot of rules to do so.
Comments
It also gives you a nice private namespace for the translation unit so you can confidently modify any of the static objects without concern for impacting external code.
I once had a gray beard chew me out over changing a function signature when revising things. I had to point out politely that it was static and that anyone who managed to link to the function had to be breaking a lot of rules to do so.