Crell / enum-comparison

A comparison of enumerations and similar features in different languages
80 stars 7 forks source link

visibility on associated values #16

Closed bwoebi closed 4 years ago

bwoebi commented 4 years ago

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.

iluuu1994 commented 4 years ago

Raised the same concern here: #10