Skip to content

Comment on When static makes your C code 10 times fasterparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.