I found a good article, about call with current continuation patterns. As I understand, they use Scheme and undelimited continuations. Can the patterns from the article be implemented in Scala? Is there any article about delimited continuations patterns in Scala ?
I found a good article , about call with current continuation patterns. As I
Share
Yes, they absolutely can.
callCClooks like this in Scala:Where
Contis a data structure that captures a continuation:Here’s how you might use it to simulate checked exceptions:
You would call this function as follows: