Joshua Bloch claims that
"a single-element enumeration type is the best way to implement a singleton"
Why? I totally disagree with this statement because enumeration is data type with some type-safe constants, like NORTH
, SOUTH
, WEST
, EAST
. I think that stable singleton can be creating using class with adding some boiler plate code. Using enumeration as fully-functional object seems misleading to me. Is it really a good approach to do it?