Is there any case or reason why an enum should ever contain protected or private contents?
I consider an enum to be a fully transparent object without hidden state - immutable and fully open. Enums are data, not state.
As such I would also drop the visibility modifier from associated values argument lists.
Is there any case or reason why an enum should ever contain protected or private contents? I consider an enum to be a fully transparent object without hidden state - immutable and fully open. Enums are data, not state.
As such I would also drop the visibility modifier from associated values argument lists.