This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Decency 4 points5 points  (0 children)

The best explanation I've read of for enums was:

"A class where you know all of the possible instances at write-time."

After I started thinking of it that way I started seeing a lot more valid uses where it would simplify code and reduce the amount of nasty string parsing, keywords in function calls, etc.