3 ms·
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 primi
by inglor 11y 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.
- jsprogrammer 11y agoShouldn'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?