> Everyone not happy about this are of course welcome to roll up their sleeves and get working.
I didn't post it as an angry response, just knew what kind of comments this would receive. Not sure why it got flagged, I wasn't saying this was some sort of excuse or that it should be rewritten, just found it interesting he included it. I'm sure he gets that comment a lot.
It doesn’t help that the whole function is a huge computed goto mutating things, spanning multiple pages.
…you mean the most common pattern for writing a state machine?
There's obviously no better way to write state machines...
Can you elaborate?
If they could, they wouldn't have used sarcasm.
Not OP, but in functional languages, state machines are often simply a function (State, Input) -> State
This is a well-discussed issue with c memes, not a widespread issue. Even in c, jump tables are a safer alternative.