Timeline for Which is better to use? (Enum or Constant)
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 27, 2013 at 13:18 | comment | added | sk patra | So nameless enum can be used like constants where there is no need of creating enum variable? | |
Dec 26, 2013 at 7:38 | history | tweeted | twitter.com/#!/StackProgrammer/status/416110764576231424 | ||
Dec 25, 2013 at 13:39 | answer | added | AProgrammer | timeline score: 7 | |
Dec 25, 2013 at 13:05 | history | edited | AProgrammer | CC BY-SA 3.0 |
Syntax
|
Dec 25, 2013 at 11:55 | history | edited | gnat | CC BY-SA 3.0 |
formatting corrected
|
Dec 25, 2013 at 10:44 | comment | added | James | You could have a nameless enum | |
Dec 25, 2013 at 7:14 | comment | added | J Trana | It doesn't seem like Page Size and Header Size are really two members of something called size but rather two sizes. Typically I think of the different enums as being more like logical states, whereas I think you're using them as constants and happen to be storing them as enums. Am I understanding your usage correctly? | |
Dec 25, 2013 at 7:13 | history | edited | gnat | CC BY-SA 3.0 |
added 15 characters in body
|
Dec 25, 2013 at 7:04 | history | asked | sk patra | CC BY-SA 3.0 |