Re:You Can Throw() Anything in JavaScript – and Other Async/...
by regularfry on Friday April 08, 2022 @07:41AM
(#30955730)
Now I'm wondering about throwing functions as continuations. This sounds incredibly messy. I love it.
[ Parent
| on HN ]
Re:You Can Throw() Anything in JavaScript – and Other Async/...
by shadowgovt on Friday April 08, 2022 @08:57AM
(#30956274)
I... 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.
Re:You Can Throw() Anything in JavaScript – and Other Async/...
by emteycz on Friday April 08, 2022 @08:27AM
(#30956038)
Why not generators then?
Re:You Can Throw() Anything in JavaScript – and Other Async/...
by regularfry on Friday April 08, 2022 @08:55AM
(#30956263)
Because that wouldn't be perversely abusing a language feature for completely the wrong purpose.