should state machine have ability to add/remove
are state machines meant to be dynamic?
lets say i got deez:
2 Replies
do you mean add/remove in the sense of chaining methods, or something else
It depends entirely on your definition of what "a state machine" is.
On one hand, it could be a static "machine" that specifies exactly what happens if you do X in state Y.
On the other hand, it could be a framework that allows you to create state machines, where you can specify what happens if you do X in state Y.
In the first case, being able to modify it after the fact is probably not a feature. In the second case, probably it is.