Why use globals at all?
Write a proper class that does one thing and it’s good.
No namespace pollution, no random stuff lurking around.
Why use globals at all?
Write a proper class that does one thing and it’s good.
No namespace pollution, no random stuff lurking around.