Re:So Singletons are bad, then what?
by dllthomas on Thursday January 30, 2014 @04:04PM
(#7153351)
Invoking init at the start of every method call won't be caught by the compiler if you forget to do it in one spot. Static safety is usually a win - on a big project, someone will do something wrong and it's best if it's caught right away when they try to compile.
I've actually been wanting ways of enforcing arbitrary rules on the structure of my code at compile time...
I've actually been wanting ways of enforcing arbitrary rules on the structure of my code at compile time...