Hacker News new | past | comments | ask | show | jobs | submit login

Generators are a subset of coroutines, and coroutines are useful in lexing and parsing.



Whoops, I meant that use set/longjmp() to implement coroutines. My wording in retrospect was super unclear. Sorry!




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

Search: