enum members are not necessarily committed to the end of the universe. You can add new members without breaking binary compatibility. Therefore, I can imagine that enum is being created to model some concept that has no instances at present, but can be added later.
Is it possible to create an enum for a concept that is known to never have any instances? For example enum NegativeNaturalNumber{} ? Can it serve any purpose in the program? Who knows, we cannot say with certainty.
ZhongYu
source share