Replies: 5 comments 4 replies
-
Great! I think this solution is more intuitive and readable, especially the overridden operator function. But it seems that the current solution actually allows users to change the target according to the business logic within the event scope. I think this is the key point of keeping the event scope separate because if we just want to statically describe the graph state, we might not need an extra layer. Both of these two approaches are okay for me. |
Beta Was this translation helpful? Give feedback.
-
And I also have a idea about adding a side effect handler to allow user to execute some task when receiving a specific event. |
Beta Was this translation helpful? Give feedback.
-
There is a well - known solution for state machine in kotlin. We can also refer to it. Here is the link below. |
Beta Was this translation helpful? Give feedback.
-
I will consider how to implement a context driven approach which is similar to xstate when I have time.If I make any progress or I have done a draft pr I will discuss with you |
Beta Was this translation helpful? Give feedback.
-
Hi, I have preliminarily completed the implementation of the two DSL functions |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The way to create a state machine in xstate may be very useful for reference, for example:
We can refer to it to implement this DSL. Using the features of Kotlin, we can do the following:
Beta Was this translation helpful? Give feedback.
All reactions