3 ms·
Singleton is just a fancy name for a global.
by gpderetta 5y ago
Singleton is just a fancy name for a global.
- throwaway889900 5y agoAh, but they come with the benefit that you are forced to only ever make one. A global doesn't prevent you from doing that, so singletons are ever so slightly better.
- Chris2048 5y agoYes, but hence a global "but .. better managed" :-)