News for hackers. Stuff that matters.
Re:More State Machine Love: From Reflection to Statecharts by solidsnack9000 on Saturday March 17, 2018 @02:03PM (#16608190)
Subclassing and returning a new object instead of updating the existing one.
Re:More State Machine Love: From Reflection to Statecharts by skybrian on Saturday March 17, 2018 @02:57PM (#16608444)
Sometimes that works, but if there is more than one possible next state, you need to return a supertype and you're back where you started.