3 ms·
Anything consisting primarily of a switch statement with a great many cases.
by agent327 3y ago
Anything consisting primarily of a switch statement with a great many cases.
- orwin 3y agoFinite state machines then. I never used more than 3 cases unless I had to write one.
- agent327 3y agoAlso event dispatchers. I've written switch statements for various event systems that need to handle 60-100 events. You can easily get to hundreds of lines without things getting unreadable.