Should we use integers instead of enums when it’s not possible to know the exact number at compilation time?
Basically I am using enum for each state of my application. Since the user can also add new states I was wondering if I should go simply with integers, otherwise I would need to write the new fields and compile at runtime the enum class. The issue is that many app stores don’t allow runtime compilation.
So, I should use integers? If not, what else could I do?