Y
Hacker News
new
|
ask
|
show
|
jobs
by
erik-kallen
5038 days ago
That's right, it doesn't get horrific until you use goto or yield (which don't exist in Javascript so they have to be emulated).
1 comments
TazeTSchnitzel
5038 days ago
Some browsers, and ES Harmony, have yield. You could add a compiler switch to use native support, although only Firefox seems to support this just now.
Curious to see how you managed the emulation - splitting up a function? Web workers? :)
link
erik-kallen
5038 days ago
for (;;), continue and switch.
link
Curious to see how you managed the emulation - splitting up a function? Web workers? :)