You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enumerations
"An enum where no constructors contain fields are called a field-less enum."
grammar: are called may be changed to is called.
possibly misleading:
"where no constructors" . The plural 'constructors' suggests that more than one constructor is allowed.
My idea:
If an enum constructor contains no fields, the enum is called a field-less enum.
The text was updated successfully, but these errors were encountered:
Sir bjorn3, Thank you for pointing out the inexactness my suggestion. I stand corrected. But I humbly feel "Each variant of an enum has it's own constructor" is suspicious.
This may do better:
For 2 If every variant of an enum that has a constructor has no field in the constructor, then the enum is called a field-less enum.
Enumerations
"An enum where no constructors contain fields are called a field-less enum."
"where no constructors" . The plural 'constructors' suggests that more than one constructor is allowed.
My idea:
If an enum constructor contains no fields, the enum is called a field-less enum.
The text was updated successfully, but these errors were encountered: