about summary refs log tree commit diff stats
path: root/076continuation.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-11-06 01:28:53 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-11-06 01:28:53 -0800
commitd55e77387fd9cc3eae2f17a6c1993f3bcb061a60 (patch)
treeff395f7d64f196c68560654b027fb1e59bf8bccc /076continuation.cc
parent3b776ac3843e925ee24f49e8df51ab6a1db6c085 (diff)
downloadmu-d55e77387fd9cc3eae2f17a6c1993f3bcb061a60.tar.gz
4117 - done with delimited continuations
At least this particular implementation of them. Let's play with them
now for a while, see if they're fully equivalent to shift/reduce.
Diffstat (limited to '076continuation.cc')
-rw-r--r--076continuation.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/076continuation.cc b/076continuation.cc
index 5311fd67..76b6abc1 100644
--- a/076continuation.cc
+++ b/076continuation.cc
@@ -31,6 +31,12 @@
 //:  * 'return-continuation-until-mark' can take ingredients to return just
 //:    like other 'return' instructions. It just implicitly also returns a
 //:    continuation as the first result. See continuation4.mu.
+//:  * Conversely, you can pass ingredients to a continuation when calling it,
+//:    to make it available to products of 'return-continuation-until-mark'.
+//:
+//: Inspired by James and Sabry, "Yield: Mainstream delimited continuations",
+//: Workshop on the Theory and Practice of Delimited Continuations, 2011.
+//: https://www.cs.indiana.edu/~sabry/papers/yield.pdf
 //:
 //: Caveats:
 //:  * At the moment we can't statically type-check continuations. So we raise