When are "in state" guards appropriate? #1482
Unanswered
dminkovsky
asked this question in
General
Replies: 1 comment 5 replies
-
Looks like some info is provided here: #349 (comment)
This makes sense to me intuitively: that's the use case I thought they made sense for, and after I read the above-mentioned note, I thought yeah, you could generally refactor this by adding more state, but not in my case because my states are orthogonal. Is that the idea? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The docs mention:
So, when are they appropriate?
I have some parallel machines, I am was inclined to use an "in state" guard to determine the correct response to an event in one machine given the state of a parallel machine. Not sure how I would do this without an "in state" guard, but I might be missing something.
Beta Was this translation helpful? Give feedback.
All reactions