Re:Singleton Is a Bad Idea
by nedbat on Sunday April 10, 2022 @03:03PM
(#30980525)
If you need just one, make just one. Why should the class enforce it?
[ Parent
| on HN ]
Why deliberately avoid enforcing design constraints? I mean, why not just make everything a void * and cast as needed and promise not to mess up?