2017-06-01から1日間の記事一覧
stack overflowで、以下のようにコードを含まないcaseについてはfall throughを許すと言っている人がいた。 switch (value) { case 0: result = ZERO_DIGIT; break; case 1: case 3: case 5: case 7: case 9: result = ODD_DIGIT; break; case 2: case 4: ca…
stack overflowで、以下のようにコードを含まないcaseについてはfall throughを許すと言っている人がいた。 switch (value) { case 0: result = ZERO_DIGIT; break; case 1: case 3: case 5: case 7: case 9: result = ODD_DIGIT; break; case 2: case 4: ca…