X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=topics%2Fweek13_native_continuation_operators.mdwn;h=6f7a0eb8a2ffed7b078947ca61b5cce17e32c627;hp=95defac23c217f2d4cf375029735bb05d9204f0a;hb=a5dc1452c495e1f2a09e44cb518353f9cc7038f7;hpb=eca9db4db15dbfd6c6f41db7759fefc4fd05174f diff --git a/topics/week13_native_continuation_operators.mdwn b/topics/week13_native_continuation_operators.mdwn index 95defac2..6f7a0eb8 100644 --- a/topics/week13_native_continuation_operators.mdwn +++ b/topics/week13_native_continuation_operators.mdwn @@ -139,7 +139,7 @@ That was all *delimited* continuation operators. There's also the **undelimited returns `101`, whereas: - (reset (+ 10 (shift k 1))) + (reset (+ 100 (shift k 1))) only returns `1`. It is possible to duplicate the behavior of `let/cc` using `reset`/`shift`, but you have to structure your code in certain ways to do it. In order to duplicate the behavior of `reset`/`shift` using `let/cc`, you need to also make use of a mutable reference cell. So in that sense delimited continuations are more powerful and undelimited continuations are sort-of a special case.