Introduction to Delimited Continuations/The second program ever
Appearance
Consider the following program:
def run() = {
println("What is your name?")
val name = readln()
println("Hello, " + name + "!")
}
We've all written this kind of program when we were first learning to code. It turns out to be a good place to start learning about continuations!
|