Hacker News new | ask | show | jobs
by eru 3785 days ago
That's why a language that forbids magic global state (or at least makes you clearly tag every tiny instance of it) can be so useful.
1 comments

Then someone invented the singleton.....
In eg Haskell a singleton needs to be tagged with IO. And that makes sense, because singleton are clearly evil global state.