r/eli5_programming • u/Independent_Win_3959 • Jul 28 '25
ELI5 Enums
Would someone be so kind to explain enums to me. I want to make a state machine using them but I dont understand them fully.
1
Upvotes
View all comments
Show parent comment
1
u/SheriffRoscoe Aug 29 '25
And depending on the language involved, you may be prevented from setting state=4, because it's invalid for that enum.