Should We declare constant value in negative integer?
i wonder should we declare constant value in negative integer ?
For example, I have a order class which have attribute status. We need
some constants to define the status value like the followings:
Deleted = -3
Cancel = -2
Refused = -1
waiting confirm = 0
waiting deliver = 1
for convention, I think it's clearer, but are there any problems that we
will face ?
No comments:
Post a Comment