Re:Ask HN: Can a state machine be stateless?
by dossy on Sunday June 12, 2022 @05:15PM
(#31718346)
It's not stateless. The state is in current_state. ¯\_(ツ)_/¯
Edit: To answer your two questions:
1) No, it's not stateless.
2) Depending on the implementation of the function, yes, it may be a valid state machine. Or, it may not be. Depends on the implementation of the state machine within the function.
Edit: To answer your two questions:
1) No, it's not stateless.
2) Depending on the implementation of the function, yes, it may be a valid state machine. Or, it may not be. Depends on the implementation of the state machine within the function.