8 ms·
Depends on what you mean by "complicated". My habit is to lay things out in event cross state and for that, it's pretty even. IMO, FSM are awfully good at reduc
by ArkyBeagle 10y ago
Depends on what you mean by "complicated". My habit is to lay things out in event cross state and for that, it's pretty even. IMO, FSM are awfully good at reducing/decomposing complexity. An FSM in Tcl may look like:
array set FSM {
init {
...
set state two
}
two {
...
}
}
...
set state init
...
eval $FSM($state)
I have just put together too many things that would have been severely daunting in any other way in this manner to agree with you.