DEV Community

Discussion on: You don't need a library for state machines

Collapse
 
davidkpiano profile image
David K. 🎹

Right; if you want to use OOP, you can. It's basically the same thing as switch-case + functions (substitute methods for functions).