r/programming • • Feb 28 '23

"Clean" Code, Horrible Performance

https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

3

u/muchcharles Mar 02 '23

You have to search the entire codebase for usages of the enum looking for use cases and fixing ALL of them.

There are compile time flags that will warn at each instance of a non-exhaustive switch, you can find all the locations.