I understand that it is not is good idea to use magic no.s ..but just take a look at the situation..
I need to describe a token..
Awould be sufficient for containing all the data..whether it is a number...or an operator....what type of operator...no of operands...etc etc....but it would scatter seemingly meaninglessCode:int type[5]^ like statements through the whole code..Code:if((x[0]==3)&&(x[2]!=0)) {;}
So, is it a better Idea to use 4 or 5 different enumerators?..
&& Also ..is there a hidden difference in performance..?..although I know that enums are basically numbers...still there could be something..!