Hacker News new | ask | show | jobs
by inglor 3991 days ago
There is, singletons are an anti-pattern, they're still interesting to discuss like this in terms of making them safe. In a language with both concurrency primitives and globals singletons have little (no) place anyway. I still learned from the post.
1 comments

Shouldn't there be a disclaimer though?

Or, at least an example of when it would be a good idea to use a singleton over some other pattern?