What
As suggested at #392 (comment), comparing enums by their order is not ideal, because it could easily be broken when a new entry is added to the enum.
Acceptance Criteria (DoD)
- No enum comparisons using
< or >
How
Ideally, prefer using switch-case without a default. This produces a compiler warning if a particular value is not considered.
What
As suggested at #392 (comment), comparing enums by their order is not ideal, because it could easily be broken when a new entry is added to the enum.
Acceptance Criteria (DoD)
<or>How
Ideally, prefer using switch-case without a default. This produces a compiler warning if a particular value is not considered.