04.10.2014, 14:20
I've had this topic open for about half an hour now. I am still trying to figure out why someone advised you to use an enum for this. Constants take up less code and are a lot easier to write out. Enums on the other hand need writing and assigning in two different pieces of code and another variable so it clogs up your code.
I would go against this advice to use an enum and just resort to constants so that your code is easier to read and maintain.
I would go against this advice to use an enum and just resort to constants so that your code is easier to read and maintain.