Singular or plural for enumerations?

后端 未结 7 1677
长发绾君心
长发绾君心 2021-01-31 12:56

Do you use singular or plural for enumerations? I think it makes best sense with plural in the declaration

enum Weekdays
{
    Monday,
    Tuesday,
    Wednesday         


        
7条回答
  •  爱一瞬间的悲伤
    2021-01-31 13:44

    It's subjective and doesn't matter what you use, as long as you're consistent (personally I use singular as its a carry over from my Sql conventions)

提交回复
热议问题