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

Not necessarily. A coroutine encapsulates the entire state machine, which might pe a PITA to implement otherwise. Say, if I have a stateful network connection, that requires initialization and periodic encryption secret renewal, a coroutine implementation would be much slimmer than that of a state machine with explicit states.


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

Search: