Re:Why we rewrote Lua in JS (2017)
by Dylan16807 on Monday April 02, 2018 @06:42AM
(#16733536)
Javascript generators make for painful coroutines, because a function called by the generator can't yield all the way out.
[ Parent
| on HN ]
Yield * fn()?
Re:Why we rewrote Lua in JS (2017)
by Dylan16807 on Monday April 02, 2018 @03:52PM
(#16738599)
You can use that sometimes, but it really complicates return values in a way Lua just doesn't have to deal with.