5 ms·
Now I'm wondering about throwing functions as continuations. This sounds incredibly messy. I love it.
by regularfry 5y ago
Now I'm wondering about throwing functions as continuations. This sounds incredibly messy. I love it.
- emteycz 5y agoWhy not generators then?
- regularfry 5y agoBecause that wouldn't be perversely abusing a language feature for completely the wrong purpose.
- shadowgovt 5y agoI... May have done something like this once in a scripting language interpreter to implement return and break. Not in JavaScript. And using continuations passed down from above would have been the much more correct way to do things.