Scala’s Singleton Objects are powerful
Scala’s Singleton Objects are powerful Scala provides the support for singletons by introducing object, which provides the anonymous type definition and its instantiation. The same instance is used throughout the life of application. This is different from the Gang of four’s singleton implementation that we are so used to. I have found there are various… Continue reading »