HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by messe | Hacker News Reader
Parent
Full thread
messe
·
…you mean the most common pattern for writing a state machine?
View on HN
anon-3988
·
There's obviously no better way to write state machines...
parasti
·
Can you elaborate?
msla
·
If they could, they wouldn't have used sarcasm.
gdprrrr
·
Not OP, but in functional languages, state machines are often simply a function (State, Input) -> State
diogenes4
·
This is a well-discussed issue with c memes, not a widespread issue. Even in c, jump tables are a safer alternative.
Reply on news.ycombinator.com