Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rust – How do I create a global, mutable singleton? (2015). Parent comment
So, yes, global state is sometimes necessary, but it absolutely should be avoided, and access to it should be restricted.
There are no comments on this comment yet.
So, yes, global state is sometimes necessary, but it absolutely should be avoided, and access to it should be restricted.