+ 1
Singletons are code smell. I have seen them in minecraft code, and I still can't figure out why people use them. Singletons are basically ugly globals with single advantage over globals. They can be initialized after they have been used. I dont know any other advantage of using "Singleton.instance" over "gInstance". Don't use them when you dont know why to use them in particular situation.
2nd Jan 2020, 10:30 PM
Null
Null - avatar