Using default in a switch statement when switching over an enum

后端 未结 16 1303
一个人的身影
一个人的身影 2020-12-15 02:57

What is your procedure when switching over an enum where every enumeration is covered by a case? Ideally you\'d like the code to be future proof, how do you do that?

<
16条回答
提交回复
热议问题