|
|
|
|
|
by cle
2686 days ago
|
|
Understand before you criticize. There are plenty of scenarios where enums can be undesirable. One off the top of my head that I run into all the time is in client stubs of service APIs, where a client-side enum representing a string value will break at runtime if the service adds a new string value. In other words, enums inhibit API evolution. |
|