HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by gpderetta | Hacker News Reader
Parent
Full thread
gpderetta
·
Singleton is just a fancy name for a global.
View on HN
throwaway889900
·
Ah, 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
·
Yes, but hence a global "but .. better managed" :-)
Reply on news.ycombinator.com