hemanth / functional-programming-jargon

Jargon from the functional programming world in simple terms!
http://git.io/fp-jargons
MIT License
18.59k stars 1.02k forks source link

Continuations #130

Closed nickzuber closed 7 years ago

nickzuber commented 7 years ago

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

jethrolarson commented 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?

nickzuber commented 7 years ago

@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

hemanth commented 7 years ago

"collection of steps"

Block of code?

nickzuber commented 7 years ago

@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.

hemanth commented 7 years ago

At any given point in a program, the part of the code that's yet to be executed is known as a continuation.

^ ?

nickzuber commented 7 years ago

@hemanth LGTM 👍