Skip to main content

One post tagged with "coroutines"

View All Tags

ยท 19 min read

Continuation

Control flow (Part 1)

Control flow (Part 2)

It's been a while since my last post, but I'm back with more thoughts on managing execution control flow. How do programming languages control the flow or processing of instructions? We are going to be talking about tools far more interesting than control structures such as loops, conditional statements, functions, and exceptions. Not every language has them built in, but most of them could be emulated. As such, this part 1 article discusses the use of continuations, coroutines, and fibers for managing control flow in software programs. It explores the benefits and differences of each mechanism and provides examples of their implementation.