3 ms·
I see now. If we add to the `enum`s and forget to update our `switch`, we still get the chance to process new commands, albeit with a minor performance hit. Pe
by delinka 10y ago
I see now. If we add to the `enum`s and forget to update our `switch`, we still get the chance to process new commands, albeit with a minor performance hit.
Personal opinion: Unit tests should be used to let you know when you forgot to add in new `case`s.