3 ms·
I don't think anyone argues variables with module scope. Because as you say they are not global.
by LolNoGenerics 8y ago
I don't think anyone argues variables with module scope. Because as you say they are not global.
- __sr__ 8y agoWell, 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”.
- cakoose 8y agoMutable 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.)