DEV Community

Discussion on: Generic Singletons

Collapse
 
thebuzzsaw profile image
Kelly Brown

Currently, the only true singletons I put up with are classes that are completely immutable with no configuration options or side effects. Even then, I'm hesitant to lock them down, but sometimes I am OK with hiding the constructor and exposing an Instance simply because creating new ones literally just wastes memory.