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

Resource managing is not a problem with state machines. Quite the opposite: you should acquire/free resources in well defined states of the machine (typically the different entry/exit points).

Generators are great for tasks that fit well but in the general case state machines are more powerful and easier to debug.

I agree that if your state machine starts evolving without control then it will be a mess (like any design).



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

Search: