You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm working on implementing delimited continuations for Kotlin, which has the option of compiling to JS.
Your implementation is intriguing, but I can't figure out from reading the code alone if it supports multishot behaviour (i.e could I do k(k(k(5))) where k is the cont passed to shift and it'd work just fine?)
This should likely be clarified in the README!
The text was updated successfully, but these errors were encountered:
Hi @kyay10, and thanks for your interest! In this library, the k() captured by shift() is a single shot continuation. It will continue to return the same value that it did the first time, or if it raises an error, will continue to raise the same error that was raised the first time it was evaluated.
Hello, I'm working on implementing delimited continuations for Kotlin, which has the option of compiling to JS.
Your implementation is intriguing, but I can't figure out from reading the code alone if it supports multishot behaviour (i.e could I do
k(k(k(5)))
where k is the cont passed toshift
and it'd work just fine?)This should likely be clarified in the README!
The text was updated successfully, but these errors were encountered: