Y
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
ktRolster
3785 days ago
Then someone invented the singleton.....
link
eru
3785 days ago
In eg Haskell a singleton needs to be tagged with IO. And that makes sense, because singleton are clearly evil global state.
link