News for hackers. Stuff that matters.
Re:It's not what programming languages do, it's what they sh... by flohofwoe on Friday March 27, 2020 @07:29AM (#22702001)
Globals are not inherently evil, but "shared, mutable state" is, basically if any part of the code is able to scribble over any global at any time.

If your globals are constants, or the globals are only visible inside a single compilation unit where it's easy to keep the situation "contained", they are perfectly fine.

There are no comments on this comment yet.