Closed nickzuber closed 7 years ago
Thanks for tackling this it looks pretty good. "Collection of instructions" sounds like it could mean something else though. Does my suggestion above make sense?
@jethrolarson Maybe we can change the wording to "collection of steps" or something — unless you had something else in mind? I personally had the light bulb moment with continuations when I realized they were just the remaining steps in a program, so my wording here might be bias
"collection of steps"
Block of code?
@hemanth Yeah I think using "code" makes things more clear — how does this revision sound:
At any given point in a program, the remaining code that still needs to be completed is known as a continuation.
or
At any given point in a program, the code that still needs to be completed is known as a continuation.
At any given point in a program, the part of the code that's yet to be executed is known as a continuation.
^ ?
@hemanth LGTM 👍
Added continuations with a short definition and example, and also added a brief commentary and example on how continuations are relevant in JavaScript async programming.
Closes #128