Also worth reading is how state machines can be encoded in the type system in some languages, for example the typestate pattern in Rust. By using the type system to encode state like this, you can prevent invalid operations on a state machine from even compiling.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: