~abcdw/trop.in

1dd432433e54086324543869b26ea6c85a785aba — Andrew Tropin 11 months ago 5fea23f
Fix missspelled contiunations
1 files changed, 4 insertions(+), 4 deletions(-)

M pages/posts/2023-05-22-continuations-summary.md
M pages/posts/2023-05-22-continuations-summary.md => pages/posts/2023-05-22-continuations-summary.md +4 -4
@@ 26,7 26,7 @@ make sense to learn this concept to get a better understanding of
Scheme Language and its ecosystem and this article is a brief sum up
on the topic.

## Continutaions
## Continuations
An expression's
[continuation](https://courses.cs.washington.edu/courses/cse341/04wi/lectures/15-scheme-continuations.html)
is "the computation that will receive the result of that expression".


@@ 39,7 39,7 @@ come back later.

The continuation of the expression `(+ 1 2)` will be something that
adds 4 to the value, like `(lambda (x) (+ 4 x))` would do, BUT!
continutaion is not a function, it doesn't return a value.  When
continuation is not a function, it doesn't return a value.  When
resumed (called), it jumps to the place, where it was captured and
continue the execution of the program from that point and never jumps
back.  Let's rewrite the example above, but storing continuation in


@@ 106,7 106,7 @@ chapter](https://homes.cs.aau.dk/~normark/prog3-03/html/notes/fu-intr-2_themes-c
and [The call/cc Yin-Yang
Puzzle](https://cleare.st/code/call-cc-yin-yang-puzzle).

## Continutaion-Passing Style
## Continuation-Passing Style
The style of programming in which the execution flow is controlled
explicitly through continuations passed as function argument.  The
analogy of callbacks is floating somewhere around.  Let's write a


@@ 140,7 140,7 @@ case](https://wingolog.org/archives/2023/05/20/approaching-cps-soup)
(representing intermediate compilation targets, programming language
researches, etc).

## Delimited Continutaions
## Delimited Continuations
Delimited continuation (aka prompt) is a generalization of
continuation, instead of capturing the context up to the beginning of
expression, it captures the context only up to delimiter, also, it