Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You should keep going with this and see how ergonomic it is when NextState can be one of many states. I tried implementing State Machines once with this method and ended up wanting to use an `enum` for `State::NextState`. After a while it ended up being pretty unwieldy.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: