Skip to content

Comment on Duke Nukem 3D Code Review (2013)parent

Comments

Haven't seen it, but a large switch can be for implementing a state machine. Which is a good structure to put a whole lot of application code in. You can tell if all the states and events are handled; you can find exactly where code for a state transition lies.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.