Hacker News new | ask | show | jobs
by Dylan16807 3003 days ago
Javascript generators make for painful coroutines, because a function called by the generator can't yield all the way out.
1 comments

Yield * fn()?
You can use that sometimes, but it really complicates return values in a way Lua just doesn't have to deal with.