News for hackers. Stuff that matters.
Re:Global variables are bad (2013) by LolNoGenerics on Thursday July 26, 2018 @03:16AM (#17615648)
I don't think anyone argues variables with module scope. Because as you say they are not global.
Re:Global variables are bad (2013) by cakoose on Thursday July 26, 2018 @03:44AM (#17615772)
Mutable variable that have exactly one instance (globally) cause some of the same issues, which is why people might casually lump them in with "global variables". (It would be nice if everyone used more precise terminology, though.)
Re:Global variables are bad (2013) by __sr__ on Thursday July 26, 2018 @03:17AM (#17615659)
Well, there have been cases where I was asked to get rid of them by people reviewing my code — for no reason other than that global variables are “considered harmful”.