I came across a piece of code in Scala that looks like this:
@Singleton
class MyClass {
// ...
}
But I thought objects were Singletons and classes were not. So is this basically equivalent to this?
object MyClass {
// ....
}
EDIT: Here is what I'm looking at.